Skip to content

Commit

Permalink
fix: replace disabled with restProps
Browse files Browse the repository at this point in the history
  • Loading branch information
kaydwithers committed Oct 5, 2023
1 parent 686e111 commit 3d03c96
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ export type TriggerButtonBaseProps = {
export const TriggerButtonBase = ({
children,
classNameOverride,
disabled,
...restProps
}: TriggerButtonBaseProps): JSX.Element => {
const { buttonProps, buttonRef, menuTriggerState } = useMenuTriggerContext()

return (
<button
type="button"
{...buttonProps}
{...restProps}
ref={buttonRef}
className={classnames(styles.button, classNameOverride)}
disabled={disabled}
>
{children}

Expand Down

0 comments on commit 3d03c96

Please sign in to comment.