1
0
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:
Alexander Skvortsov
2020-08-09 19:42:17 -04:00
committed by Franz Liedke

View File

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