فهرست منبع

Select: fix an input initial height bug

Leopoldthecoder 8 سال پیش
والد
کامیت
10373eaf6c
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      packages/select/src/select.vue

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

@@ -223,6 +223,9 @@
           } else {
             this.currentPlaceholder = this.cachedPlaceHolder;
           }
+          this.$nextTick(() => {
+            this.resetInputHeight();
+          });
           if (this.selectedInit) {
             this.selectedInit = false;
             return;
@@ -232,9 +235,6 @@
 
           this.$emit('input', result);
           this.$emit('change', result);
-          this.$nextTick(() => {
-            this.resetInputHeight();
-          });
           if (this.filterable) {
             this.query = '';
             this.hoverIndex = -1;