diff --git a/packages/components/select/src/select-dropdown.vue b/packages/components/select/src/select-dropdown.vue index 77324065eb115..2b46a7b64b580 100644 --- a/packages/components/select/src/select-dropdown.vue +++ b/packages/components/select/src/select-dropdown.vue @@ -29,9 +29,7 @@ export default defineComponent({ const minWidth = ref('') function updateMinWidth() { - minWidth.value = `${ - select.selectWrapper?.getBoundingClientRect().width - }px` + minWidth.value = `${select.selectWrapper?.offsetWidth}px` } onMounted(() => {