Skip to content

Commit

Permalink
fix: rename to disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kaydwithers committed Oct 5, 2023
1 parent 91df6e1 commit e94f837
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .changeset/swift-weeks-dream.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@kaizen/select": minor
---

add isDisabled prop
fix: add disabled prop
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ import styles from "./TriggerButtonBase.module.scss"
export type TriggerButtonBaseProps = {
children: React.ReactNode
classNameOverride?: string // TODO: migrate it to use OverrideClassName<T> and omit the props controlled by React-Aria
isDisabled?: boolean
disabled?: boolean
}

export const TriggerButtonBase = ({
children,
classNameOverride,
isDisabled,
disabled,
}: TriggerButtonBaseProps): JSX.Element => {
const { buttonProps, buttonRef, menuTriggerState } = useMenuTriggerContext()

return (
<button
disabled={isDisabled}
disabled={disabled}
type="button"
{...buttonProps}
ref={buttonRef}
Expand Down

0 comments on commit e94f837

Please sign in to comment.