Commit cdc482c0 authored by cinwell.li's avatar cinwell.li Committed by GitHub

Merge pull request #3219 from thomasyonug/dev

cascader:bug fix #3191. when menuIndex = 0 edge case
parents 44f8ed28 cbf3a9e1
......@@ -73,8 +73,10 @@
select(item, menuIndex) {
if (item.__IS__FLAT__OPTIONS) {
this.activeValue = item.value;
} else {
} else if (menuIndex) {
this.activeValue.splice(menuIndex, this.activeValue.length - 1, item.value);
} else {
this.activeValue = [item.value];
}
this.$emit('pick', this.activeValue);
},
......@@ -168,4 +170,4 @@
);
}
};
</script>
\ No newline at end of file
</script>
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