Skip to content

Commit

Permalink
Cascader: fix a bug that makes the browser jitter in zoom mode (Eleme…
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 authored and hzsrc committed Feb 2, 2023
1 parent 22fac08 commit e4afbad
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 e4afbad

Please sign in to comment.