mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [select] fix for confusing click behaviour (#13664)
fix(components): [select] fix for confusing click behaviour (#13642)
This commit is contained in:
@@ -805,9 +805,12 @@ export const useSelect = (props, states: States, ctx) => {
|
||||
|
||||
const handleBlur = (event: FocusEvent) => {
|
||||
setTimeout(() => {
|
||||
// validate current focus event is inside el-tooltip-content
|
||||
// validate current focus event is inside el-tooltip-content or el-select
|
||||
// if so, ignore the blur event and the next focus event
|
||||
if (tooltipRef.value?.isFocusInsideContent()) {
|
||||
if (
|
||||
tooltipRef.value?.isFocusInsideContent() ||
|
||||
selectWrapper.value?.contains(event.relatedTarget)
|
||||
) {
|
||||
ignoreFocusEvent = true
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user