fix #5021
This commit is contained in:
parent
4cc72ddba5
commit
5be1b3ee91
1 changed files with 5 additions and 1 deletions
|
@ -77,7 +77,11 @@
|
||||||
|
|
||||||
// return value back recursion // 向上递归,设置临时选中值(并非真实选中)
|
// return value back recursion // 向上递归,设置临时选中值(并非真实选中)
|
||||||
const backItem = this.getBaseItem(item);
|
const backItem = this.getBaseItem(item);
|
||||||
if (backItem.label !== this.tmpItem.label || backItem.value !== this.tmpItem.value) {
|
// #5021
|
||||||
|
if (this.changeOnSelect) {
|
||||||
|
this.tmpItem = backItem;
|
||||||
|
this.emitUpdate([backItem]);
|
||||||
|
} else if (backItem.label !== this.tmpItem.label || backItem.value !== this.tmpItem.value) {
|
||||||
this.tmpItem = backItem;
|
this.tmpItem = backItem;
|
||||||
this.emitUpdate([backItem]);
|
this.emitUpdate([backItem]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue