mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 00:06:35 +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) {
|
if (mainWindow.history.state?.replaced) {
|
||||||
LOADED[dialogTag].closedFocusTargets =
|
LOADED[dialogTag].closedFocusTargets =
|
||||||
LOADED[mainWindow.history.state.dialog].closedFocusTargets;
|
LOADED[mainWindow.history.state.dialog].closedFocusTargets;
|
||||||
|
delete LOADED[mainWindow.history.state.dialog].closedFocusTargets;
|
||||||
} else {
|
} else {
|
||||||
LOADED[dialogTag].closedFocusTargets = ancestorsWithProperty(
|
LOADED[dialogTag].closedFocusTargets = ancestorsWithProperty(
|
||||||
deepActiveElement(),
|
deepActiveElement(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user