Skip to content

Commit

Permalink
Delete focus targets for replaced dialogs (#12724)
Browse files Browse the repository at this point in the history
  • Loading branch information
steverep committed May 18, 2022
1 parent d32f84f commit 4cfb671
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dialogs/make-dialog-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 4cfb671

Please sign in to comment.