Merge pull request #4472 from Happy-Friday/2.0

fix: cascader limitless refresh in hover trigger
This commit is contained in:
Aresn 2018-09-27 14:19:04 +08:00 committed by GitHub
commit 07f7821385
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,8 +77,10 @@
// return value back recursion //
const backItem = this.getBaseItem(item);
this.tmpItem = backItem;
this.emitUpdate([backItem]);
if (backItem.label !== this.tmpItem.label || backItem.value !== this.tmpItem.value) {
this.tmpItem = backItem;
this.emitUpdate([backItem]);
}
if (item.children && item.children.length){
this.sublist = item.children;
this.dispatch('Cascader', 'on-result-change', {