From c1f5864faf0f46fc115f18fb1d4692211b1ef0df Mon Sep 17 00:00:00 2001 From: cheer <2224725460@qq.com> Date: Thu, 23 Jun 2022 19:30:14 +0800 Subject: [PATCH] fix(components): [select] fix select dropdown width (#8396) --- packages/components/select/src/select-dropdown.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(() => {