فهرست منبع

Select: fix initialInputHeight (#15989)

Select: fix initialInputHeight (#15989)
Inside 6 سال پیش
والد
کامیت
b4c2570387
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      packages/select/src/select.vue

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

@@ -869,7 +869,8 @@
           small: 32,
           mini: 28
         };
-        this.initialInputHeight = reference.$el.getBoundingClientRect().height || sizeMap[this.selectSize];
+        const input = reference.$el.querySelector('input');
+        this.initialInputHeight = input.getBoundingClientRect().height || sizeMap[this.selectSize];
       }
       if (this.remote && this.multiple) {
         this.resetInputHeight();