Skip to content

Commit

Permalink
fix: drill down isDisabled prop for Select (#5518)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsnotrisky authored Feb 10, 2025
1 parent 54f17d4 commit ae0ec1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-planets-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@kaizen/components': patch
---

Fix drilling down isDisabled prop for Select
3 changes: 1 addition & 2 deletions packages/components/src/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const Select = React.forwardRef<any, SelectProps>(
description,
fullWidth: propsFullWidth,
className: propsClassName,
isDisabled,
placeholder,
...props
},
Expand All @@ -76,7 +75,7 @@ export const Select = React.forwardRef<any, SelectProps>(
variant === 'secondary' && styles.secondary,
variant === 'secondary-small' && styles.secondarySmall,
!fullWidth && styles.notFullWidth,
isDisabled && styles.disabled,
props.isDisabled && styles.disabled,
status === 'error' && styles.error,
)

Expand Down

0 comments on commit ae0ec1e

Please sign in to comment.