fix: cascader limitless refresh in hover trigger

This commit is contained in:
liyunhang.fe 2018-09-09 02:20:19 +08:00
parent f356c49298
commit 1a6249add3

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', {