Select: fix initialInputHeight (#15989)

Select: fix initialInputHeight (#15989)
pull/16063/head
Inside 2019-06-11 10:14:47 +08:00 committed by WaSheep
parent 1394ed5e76
commit b0aae6d27d
1 changed files with 2 additions and 1 deletions

View File

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