mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-24 21:37:21 +00:00
Delete focus targets for replaced dialogs (#12724)
This commit is contained in:
parent
d32f84f28d
commit
4cfb6713cb
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user