Skip to content

Commit

Permalink
Forwarding disabled to the <input> of <KuiSwitch>
Browse files Browse the repository at this point in the history
Closes #5
  • Loading branch information
bevacqua authored Oct 23, 2017
1 parent b5817ca commit 898a384
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/form/switch/switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const KuiSwitch = ({
id,
name,
checked,
disabled,
onChange,
className,
...rest,
Expand All @@ -23,6 +24,7 @@ export const KuiSwitch = ({
id={id}
type="checkbox"
checked={checked}
disabled={disabled}
onChange={onChange}
/>

Expand Down

0 comments on commit 898a384

Please sign in to comment.