From d61b98ddb3e90598d96c8dca3b8e53ae7fca8b52 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 28 Jul 2015 17:19:00 +0930 Subject: [PATCH] Properly disable buttons --- framework/core/js/lib/components/Button.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/core/js/lib/components/Button.js b/framework/core/js/lib/components/Button.js index 5a5698d52..f99bda0ce 100644 --- a/framework/core/js/lib/components/Button.js +++ b/framework/core/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; }