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 qingdengyue committed Jun 21, 2019
1 parent 52413af commit 7e5951f
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 7e5951f

Please sign in to comment.