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; }