fix(split-pane): disabled prop is dynamic

fixes #14959
This commit is contained in:
Manu Mtz.-Almeida
2018-08-12 02:00:31 +02:00
parent b7e741ab80
commit 149039bd12

View File

@ -64,7 +64,7 @@ export class SplitPane {
componentDidLoad() { componentDidLoad() {
this._styleChildren(); this._styleChildren();
this.whenChanged(); this.updateState();
} }
componentDidUnload() { componentDidUnload() {
@ -74,8 +74,9 @@ export class SplitPane {
} }
} }
@Watch('disabled')
@Watch('when') @Watch('when')
protected whenChanged() { protected updateState() {
if (this.isServer) { if (this.isServer) {
return; return;
} }