浏览代码

Select: fix incorrect popper updating when filterable

Leopoldthecoder 8 年之前
父节点
当前提交
5e455f911f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/select/src/select.vue

+ 1 - 1
packages/select/src/select.vue

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