mirror of https://github.com/ElemeFE/element
cascader:bug fix #3191. when menuIndex = 0 edge case
parent
2a11579dbc
commit
cadcd91968
|
@ -74,7 +74,11 @@
|
|||
if (item.__IS__FLAT__OPTIONS) {
|
||||
this.activeValue = item.value;
|
||||
} else {
|
||||
if (menuIndex) {
|
||||
this.activeValue.splice(menuIndex, this.activeValue.length - 1, item.value);
|
||||
} else {
|
||||
this.activeValue = [item.value];
|
||||
}
|
||||
}
|
||||
this.$emit('pick', this.activeValue);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue