mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [select-v2] reset hoverindex when close dropdown list (#12090)
This commit is contained in:
@@ -746,6 +746,15 @@ const useSelect = (props: ExtractPropTypes<typeof SelectProps>, emit) => {
|
||||
return nextTick(menuRef.value.resetScrollTop)
|
||||
})
|
||||
|
||||
watch(
|
||||
() => dropdownMenuVisible.value,
|
||||
(val) => {
|
||||
if (!val) {
|
||||
resetHoveringIndex()
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
onMounted(() => {
|
||||
initStates()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user