Skip to content

Commit

Permalink
cascader: view can't change when value changed. fix ElemeFE#18025
Browse files Browse the repository at this point in the history
  • Loading branch information
xuxiaofei.666 committed Jun 8, 2020
1 parent bf534d9 commit 566fdbe
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/cascader/src/cascader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,14 @@ export default {
disabled() {
this.computePresentContent();
},
value(val) {
if (!isEqual(val, this.checkedValue)) {
this.checkedValue = val;
this.computePresentContent();
}
value: {
handler(value) {
if (!isEqual(val, this.checkedValue)) {
this.checkedValue = val;
this.computePresentContent();
}
},
deep: true
},
checkedValue(val) {
const { value, dropDownVisible } = this;
Expand Down

0 comments on commit 566fdbe

Please sign in to comment.