mirror of
https://github.com/flarum/core.git
synced 2025-08-08 09:26:34 +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;
|
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>;
|
return <button {...attrs}>{this.getButtonContent(vnode.children)}</button>;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user