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

Select: remove scrollToOption after selection (#10115)

杨奕 пре 7 година
родитељ
комит
c6e85dbd81
1 измењених фајлова са 1 додато и 0 уклоњено
  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();
         });