From ff6f2ebf82e5a52d2786a981a685f348f25432af Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 28 Jul 2015 17:19:00 +0930 Subject: [PATCH] Properly disable buttons --- js/lib/components/Button.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/lib/components/Button.js b/js/lib/components/Button.js index 5a5698d52..f99bda0ce 100644 --- a/js/lib/components/Button.js +++ b/js/lib/components/Button.js @@ -28,8 +28,7 @@ export default class Button extends Component { const iconName = extract(attrs, 'icon'); if (iconName) attrs.className += ' hasIcon'; - const disabled = extract(attrs, 'disabled'); - if (disabled) { + if (attrs.disabled) { attrs.className += ' disabled'; delete attrs.onclick; }