Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

Commit b7f81e3

Browse files
cs1707CarterLi
authored andcommitted
Select: fix resetInputHeight (ElemeFE#21201)
1 parent d89ce66 commit b7f81e3

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
@@ -668,7 +668,7 @@
668668
let inputChildNodes = this.$refs.reference.$el.childNodes;
669669
let input = [].filter.call(inputChildNodes, item => item.tagName === 'INPUT')[0];
670670
const tags = this.$refs.tags;
671-
const tagsHeight = Math.round(tags.getBoundingClientRect().height);
671+
const tagsHeight = tags ? Math.round(tags.getBoundingClientRect().height) : 0;
672672
const sizeInMap = this.initialInputHeight || 40;
673673
input.style.height = this.selected.length === 0
674674
? sizeInMap + 'px'

0 commit comments

Comments
 (0)