Explorar o código

Select: input regain focus when multiple&filterable

Leopoldthecoder %!s(int64=8) %!d(string=hai) anos
pai
achega
8fc55e30e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
         }
       },