mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-16 13:56:35 +00:00
Fix for auto closing dialogs on navigate
(#23262)
This commit is contained in:
parent
86f1af6682
commit
18cce45b88
@ -202,7 +202,8 @@ const _handleClosed = async (ev: HASSDomEvent<DialogClosedParams>) => {
|
|||||||
{ dialog: OPEN_DIALOG_STACK[OPEN_DIALOG_STACK.length - 1].dialogTag },
|
{ dialog: OPEN_DIALOG_STACK[OPEN_DIALOG_STACK.length - 1].dialogTag },
|
||||||
""
|
""
|
||||||
);
|
);
|
||||||
} else {
|
} else if (dialogIndex !== -1) {
|
||||||
|
// if the dialog is the last one and it was indeed open, go back
|
||||||
mainWindow.history.back();
|
mainWindow.history.back();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user