From 4abd29c5972a057b6a8fce1d99298ed553c84aa4 Mon Sep 17 00:00:00 2001 From: Cheerwhy <73086438+Cheerwhy@users.noreply.github.com> Date: Fri, 24 Jun 2022 21:26:10 +0800 Subject: [PATCH] fix(components): [select] fix select dropdown width (#8396) (#8435) --- 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 77324065eb..2b46a7b64b 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(() => {