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:
fengmingjian 2023-07-22 08:48:01 +08:00 committed by GitHub
parent 22de9e06bd
commit ec61c7b068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -293,7 +293,7 @@ export default defineComponent({
tryFocus(lastFocusBeforeTrapped ?? document.body) tryFocus(lastFocusBeforeTrapped ?? document.body)
} }
trapContainer.removeEventListener(FOCUS_AFTER_RELEASED, trapOnFocus) trapContainer.removeEventListener(FOCUS_AFTER_RELEASED, releaseOnFocus)
focusableStack.remove(focusLayer) focusableStack.remove(focusLayer)
} }
} }