Delete focus targets for replaced dialogs (#12724)

This commit is contained in:
Steve Repsher 2022-05-18 12:18:22 -04:00 committed by GitHub
parent d32f84f28d
commit 4cfb6713cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,6 +86,7 @@ export const showDialog = async (
if (mainWindow.history.state?.replaced) {
LOADED[dialogTag].closedFocusTargets =
LOADED[mainWindow.history.state.dialog].closedFocusTargets;
delete LOADED[mainWindow.history.state.dialog].closedFocusTargets;
} else {
LOADED[dialogTag].closedFocusTargets = ancestorsWithProperty(
deepActiveElement(),