Просмотр исходного кода

Select: fix click icon triggering dropdown (#21314)

dennyak47 3 лет назад
Родитель
Сommit
95445e209f
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/select/src/select.vue

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

@@ -565,10 +565,10 @@
       handleFocus(event) {
         if (!this.softFocus) {
           if (this.automaticDropdown || this.filterable) {
-            this.visible = true;
-            if (this.filterable) {
+            if (this.filterable && !this.visible) {
               this.menuVisibleOnFocus = true;
             }
+            this.visible = true;
           }
           this.$emit('focus', event);
         } else {