Skip to content

Commit a0f513a

Browse files
committed
Select: fix resetInputHeight
1 parent 69fa9dc commit a0f513a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/select/src/select.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@
646646
let inputChildNodes = this.$refs.reference.$el.childNodes;
647647
let input = [].filter.call(inputChildNodes, item => item.tagName === 'INPUT')[0];
648648
const tags = this.$refs.tags;
649-
const tagsHeight = Math.round(tags.getBoundingClientRect().height);
649+
const tagsHeight = tags ? Math.round(tags.getBoundingClientRect().height) : 0;
650650
const sizeInMap = this.initialInputHeight || 40;
651651
input.style.height = this.selected.length === 0
652652
? sizeInMap + 'px'

0 commit comments

Comments
 (0)