From 149039bd12c4fdfa06cf61ec9aef4f44b2eb56e9 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Sun, 12 Aug 2018 02:00:31 +0200 Subject: [PATCH] fix(split-pane): disabled prop is dynamic fixes #14959 --- core/src/components/split-pane/split-pane.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/components/split-pane/split-pane.tsx b/core/src/components/split-pane/split-pane.tsx index 20ffa634d7..6e77c65222 100644 --- a/core/src/components/split-pane/split-pane.tsx +++ b/core/src/components/split-pane/split-pane.tsx @@ -64,7 +64,7 @@ export class SplitPane { componentDidLoad() { this._styleChildren(); - this.whenChanged(); + this.updateState(); } componentDidUnload() { @@ -74,8 +74,9 @@ export class SplitPane { } } + @Watch('disabled') @Watch('when') - protected whenChanged() { + protected updateState() { if (this.isServer) { return; }