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 abigail-0111 committed Dec 21, 2021
1 parent 17a4e20 commit fed4e8e
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 fed4e8e

Please sign in to comment.