Selaa lähdekoodia

Select: remove scrollToOption after selection (#10115)

杨奕 7 vuotta sitten
vanhempi
commit
c6e85dbd81
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      packages/select/src/select.vue

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

@@ -644,6 +644,7 @@
           this.visible = false;
         }
         this.$nextTick(() => {
+          if (this.visible) return;
           this.scrollToOption(option);
           this.setSoftFocus();
         });