Skip to content

Commit

Permalink
Cascader: fix a bug that makes the browser jitter in zoom mode (#21207)
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 committed Aug 9, 2021
1 parent 390264f commit eb48974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cascader/src/cascader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ export default {
}
if (tags) {
const { offsetHeight } = tags;
const offsetHeight = Math.round(tags.getBoundingClientRect().height);
const height = Math.max(offsetHeight + 6, inputInitialHeight) + 'px';
inputInner.style.height = height;
this.updatePopper();
Expand Down

0 comments on commit eb48974

Please sign in to comment.