Преглед изворни кода

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();
         }
       },