Restore scroll position go back to backup settings page (#23955)

This commit is contained in:
Paul Bottein 2025-01-30 09:56:52 +01:00 committed by GitHub
parent e3f2f66206
commit 3f2e2bc659
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -50,8 +50,8 @@ class HaConfigBackupSettings extends LitElement {
} }
} }
protected firstUpdated(_changedProperties: PropertyValues): void { public connectedCallback(): void {
super.firstUpdated(_changedProperties); super.connectedCallback();
this._scrollToSection(); this._scrollToSection();
} }

View File

@ -119,6 +119,7 @@ class HaConfigBackup extends SubscribeMixin(HassRouterPage) {
settings: { settings: {
tag: "ha-config-backup-settings", tag: "ha-config-backup-settings",
load: () => import("./ha-config-backup-settings"), load: () => import("./ha-config-backup-settings"),
cache: true,
}, },
location: { location: {
tag: "ha-config-backup-location", tag: "ha-config-backup-location",