mirror of
https://github.com/flarum/core.git
synced 2025-08-07 17:07:19 +02:00
Merge branch 'mithril-2-update' of github.com:flarum/core into mithril-2-update
This commit is contained in:
@@ -45,7 +45,7 @@ export default class Button extends Component {
|
||||
delete attrs.onclick;
|
||||
}
|
||||
|
||||
attrs.className = classList([attrs.className, iconName && 'hasIcon', attrs.disabled && 'disabled', loading && 'loading']);
|
||||
attrs.className = classList([attrs.className, iconName && 'hasIcon', (attrs.disabled || loading) && 'disabled', loading && 'loading']);
|
||||
|
||||
return <button {...attrs}>{this.getButtonContent(vnode.children)}</button>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user