Skip to content

Commit

Permalink
Select: fix resetInputHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 committed Aug 4, 2021
1 parent 69fa9dc commit a0f513a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/select/src/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@
let inputChildNodes = this.$refs.reference.$el.childNodes;
let input = [].filter.call(inputChildNodes, item => item.tagName === 'INPUT')[0];
const tags = this.$refs.tags;
const tagsHeight = Math.round(tags.getBoundingClientRect().height);
const tagsHeight = tags ? Math.round(tags.getBoundingClientRect().height) : 0;
const sizeInMap = this.initialInputHeight || 40;
input.style.height = this.selected.length === 0
? sizeInMap + 'px'
Expand Down

0 comments on commit a0f513a

Please sign in to comment.