Skip to content

Commit

Permalink
Select: fix size attribute not working
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyoung committed Oct 16, 2018
1 parent 9b1d120 commit e463797
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/select/src/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,12 @@
const reference = this.$refs.reference;
if (reference && reference.$el) {
this.initialInputHeight = reference.$el.getBoundingClientRect().height;
const sizeMap = {
medium: 36,
small: 32,
mini: 28
};
this.initialInputHeight = reference.$el.getBoundingClientRect().height || sizeMap[this.selectSize];
}
if (this.remote && this.multiple) {
this.resetInputHeight();
Expand Down

0 comments on commit e463797

Please sign in to comment.