fix(components): [autocomplete] prevent closing if focus is inside popper content (#19522)

fix: [autocomplete] prevent closing if focus is inside popper content
This commit is contained in:
DDDDD12138
2025-01-21 21:32:24 +08:00
committed by GitHub
parent f980addfe3
commit acbb0c0ca1

View File

@@ -357,6 +357,8 @@ const highlight = (index: number) => {
}
const stopHandle = onClickOutside(listboxRef, () => {
// Prevent closing if focus is inside popper content
if (popperRef.value?.isFocusInsideContent()) return
suggestionVisible.value && close()
})