mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-03 03:38:41 +08:00
fix(components): [focus-trap] Fixed the function that removed the listener (#13158)
fix(components): [focus-trap] correct-error-listening closed #13128 Co-authored-by: fengmingjian <fmj@hanzhisoft.com>
This commit is contained in:
parent
22de9e06bd
commit
ec61c7b068
@ -293,7 +293,7 @@ export default defineComponent({
|
||||
tryFocus(lastFocusBeforeTrapped ?? document.body)
|
||||
}
|
||||
|
||||
trapContainer.removeEventListener(FOCUS_AFTER_RELEASED, trapOnFocus)
|
||||
trapContainer.removeEventListener(FOCUS_AFTER_RELEASED, releaseOnFocus)
|
||||
focusableStack.remove(focusLayer)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user