mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
fix(components): [select-v2] reset hoverindex when close dropdown list (#12090)
This commit is contained in:
parent
e3386d303b
commit
285f7c2195
@ -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()
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user