mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-15 05:50:24 +00:00
Fix dirty check/leaving automation editor (#10211)
This commit is contained in:
@@ -586,7 +586,9 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
|
||||
),
|
||||
confirmText: this.hass!.localize("ui.common.leave"),
|
||||
dismissText: this.hass!.localize("ui.common.stay"),
|
||||
confirm: () => history.back(),
|
||||
confirm: () => {
|
||||
setTimeout(() => history.back());
|
||||
},
|
||||
});
|
||||
} else {
|
||||
history.back();
|
||||
|
||||
Reference in New Issue
Block a user