Select: optimize filterable, fixed #1933 (#1935)

pull/1898/head
杨奕 2016-12-23 00:48:54 +08:00 committed by cinwell.li
parent 17ce1a3283
commit 12e4b02e31
2 changed files with 3 additions and 6 deletions

View File

@ -92,11 +92,6 @@
},
value() {
this.dispatch('ElSelect', 'setSelected');
},
visible() {
this.$nextTick(() => {
this.dispatch('ElSelectDropdown', 'updatePopper');
});
}
},

View File

@ -229,7 +229,9 @@
},
query(val) {
this.broadcast('ElSelectDropdown', 'updatePopper');
this.$nextTick(() => {
this.broadcast('ElSelectDropdown', 'updatePopper');
});
this.hoverIndex = -1;
if (this.multiple && this.filterable) {
this.resetInputHeight();