Explorar o código

Cascader: fix a bug that makes the browser jitter in zoom mode (#21207)

好多大米 %!s(int64=4) %!d(string=hai) anos
pai
achega
eb48974c14
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/cascader/src/cascader.vue

+ 1 - 1
packages/cascader/src/cascader.vue

@@ -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();