From e62d00331e33e72eaca8f0b4969aa67b8be67163 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Mon, 21 Sep 2020 16:12:08 +0300 Subject: [PATCH] Add watcher --- src/components/fieldset/Fieldset.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/fieldset/Fieldset.vue b/src/components/fieldset/Fieldset.vue index 7b778aea6..a90279e36 100755 --- a/src/components/fieldset/Fieldset.vue +++ b/src/components/fieldset/Fieldset.vue @@ -38,6 +38,11 @@ export default { d_collapsed: this.collapsed } }, + watch: { + collapsed(newValue) { + this.d_collapsed = newValue; + } + }, methods: { toggle(event) { this.d_collapsed = !this.d_collapsed;