Commit 934826c1 authored by louiebb's avatar louiebb Committed by GitHub

Cascader: fix unexpected error (#21759)

Co-authored-by: default avatarlouie <liguanzhi@youxin.cloud>
parent 13ef9664
...@@ -136,6 +136,10 @@ export default { ...@@ -136,6 +136,10 @@ export default {
}, },
watch: { watch: {
value() {
this.syncCheckedValue();
this.checkStrictly && this.calculateCheckedNodePaths();
},
options: { options: {
handler: function() { handler: function() {
this.initStore(); this.initStore();
...@@ -143,10 +147,6 @@ export default { ...@@ -143,10 +147,6 @@ export default {
immediate: true, immediate: true,
deep: true deep: true
}, },
value() {
this.syncCheckedValue();
this.checkStrictly && this.calculateCheckedNodePaths();
},
checkedValue(val) { checkedValue(val) {
if (!isEqual(val, this.value)) { if (!isEqual(val, this.value)) {
this.checkStrictly && this.calculateCheckedNodePaths(); this.checkStrictly && this.calculateCheckedNodePaths();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment