Stop mouseUp propagation in statuses
This commit is contained in:
@@ -8,7 +8,7 @@ import { useButtonStyles } from './useButtonStyles';
|
||||
|
||||
import type { ButtonSizes, ButtonThemes } from './useButtonStyles';
|
||||
|
||||
interface IButton {
|
||||
interface IButton extends Pick<React.HTMLAttributes<HTMLButtonElement>, 'onClick' | 'onMouseUp'> {
|
||||
/** Whether this button expands the width of its container. */
|
||||
block?: boolean,
|
||||
/** Elements inside the <button> */
|
||||
@@ -19,8 +19,6 @@ interface IButton {
|
||||
disabled?: boolean,
|
||||
/** URL to an SVG icon to render inside the button. */
|
||||
icon?: string,
|
||||
/** Action when the button is clicked. */
|
||||
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void,
|
||||
/** A predefined button size. */
|
||||
size?: ButtonSizes,
|
||||
/** Text inside the button. Takes precedence over `children`. */
|
||||
|
||||
Reference in New Issue
Block a user