fix(components): [select-v2] read properties of null (#14321)

This commit is contained in:
一只前端汪
2023-10-08 02:35:05 -05:00
committed by GitHub
parent 9e1c8f6c4e
commit 8281fa983c

View File

@@ -755,7 +755,7 @@ const useSelect = (props: ExtractPropTypes<typeof SelectProps>, emit) => {
// fix the problem that scrollTop is not reset in filterable mode
watch(filteredOptions, () => {
return nextTick(menuRef.value.resetScrollTop)
return menuRef.value && nextTick(menuRef.value.resetScrollTop)
})
watch(