Skip to content

Commit

Permalink
fix(components): [select] fix select dropdown width (#8396) (#8435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheerwhy committed Jun 24, 2022
1 parent 49bc137 commit 4abd29c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/components/select/src/select-dropdown.vue
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 4abd29c

Please sign in to comment.