Skip to content

Commit

Permalink
fix(Switch): pass disabled prop correctly to radix switch component
Browse files Browse the repository at this point in the history
  • Loading branch information
sjschlapbach committed Jul 15, 2024
1 parent fd9d457 commit 714742f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export function Switch({
)}
onCheckedChange={!disabled ? onCheckedChange : () => null}
onClick={() => (onBlur ? onBlur() : null)}
disabled={disabled}
>
<RadixSwitch.Thumb
className={twMerge(
Expand Down

0 comments on commit 714742f

Please sign in to comment.