瀏覽代碼

Select: input regain focus when multiple&filterable

Leopoldthecoder 8 年之前
父節點
當前提交
8fc55e30e6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/select/src/select.vue

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

@@ -515,8 +515,8 @@
           if (option.created) {
             this.query = '';
             this.inputLength = 20;
-            this.$refs.input.focus();
           }
+          if (this.filterable) this.$refs.input.focus();
         }
       },