Skip to content

Commit

Permalink
Select: fix initialInputHeight (ElemeFE#15989)
Browse files Browse the repository at this point in the history
Select: fix initialInputHeight (ElemeFE#15989)
  • Loading branch information
yyjjqq94 authored and lzq4047 committed May 22, 2020
1 parent 7e58419 commit 1e1e557
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/select/src/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1e1e557

Please sign in to comment.