Merge pull request #4472 from Happy-Friday/2.0
fix: cascader limitless refresh in hover trigger
This commit is contained in:
commit
07f7821385
1 changed files with 4 additions and 2 deletions
|
@ -77,8 +77,10 @@
|
||||||
|
|
||||||
// return value back recursion // 向上递归,设置临时选中值(并非真实选中)
|
// return value back recursion // 向上递归,设置临时选中值(并非真实选中)
|
||||||
const backItem = this.getBaseItem(item);
|
const backItem = this.getBaseItem(item);
|
||||||
this.tmpItem = backItem;
|
if (backItem.label !== this.tmpItem.label || backItem.value !== this.tmpItem.value) {
|
||||||
this.emitUpdate([backItem]);
|
this.tmpItem = backItem;
|
||||||
|
this.emitUpdate([backItem]);
|
||||||
|
}
|
||||||
if (item.children && item.children.length){
|
if (item.children && item.children.length){
|
||||||
this.sublist = item.children;
|
this.sublist = item.children;
|
||||||
this.dispatch('Cascader', 'on-result-change', {
|
this.dispatch('Cascader', 'on-result-change', {
|
||||||
|
|
Loading…
Add table
Reference in a new issue