Skip to content

Commit

Permalink
fix(components): [select-v2] fix select-v2 dropdown width (#8442)
Browse files Browse the repository at this point in the history
Co-authored-by: qinzz <qinzz@chint.com>
  • Loading branch information
Cheerwhy and qinzz committed Jun 24, 2022
1 parent 272c2e6 commit 5383ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/select-v2/src/useSelect.ts
Expand Up @@ -200,7 +200,7 @@ const useSelect = (props: ExtractPropTypes<typeof SelectProps>, emit) => {
})

const calculatePopperSize = () => {
popperSize.value = selectRef.value?.getBoundingClientRect?.()?.width || 200
popperSize.value = selectRef.value?.offsetWidth || 200
}

const inputWrapperStyle = computed(() => {
Expand Down

0 comments on commit 5383ef9

Please sign in to comment.