From 898a3845e834acdc4927feea721da1bb62ef3b84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Bevacqua?= Date: Mon, 23 Oct 2017 14:21:58 -0300 Subject: [PATCH] Forwarding `disabled` to the `` of `` Closes #5 --- src/components/form/switch/switch.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/form/switch/switch.js b/src/components/form/switch/switch.js index d18fceae9a9..8344d5bd808 100644 --- a/src/components/form/switch/switch.js +++ b/src/components/form/switch/switch.js @@ -9,6 +9,7 @@ export const KuiSwitch = ({ id, name, checked, + disabled, onChange, className, ...rest, @@ -23,6 +24,7 @@ export const KuiSwitch = ({ id={id} type="checkbox" checked={checked} + disabled={disabled} onChange={onChange} />