소스 검색

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();