mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [select-v2] read properties of null (#14321)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user