Skip to content

Commit

Permalink
Restore scroll position go back to backup settings page (#23955)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored Jan 30, 2025
1 parent e3f2f66 commit 3f2e2bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/panels/config/backup/ha-config-backup-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class HaConfigBackupSettings extends LitElement {
}
}

protected firstUpdated(_changedProperties: PropertyValues): void {
super.firstUpdated(_changedProperties);
public connectedCallback(): void {
super.connectedCallback();
this._scrollToSection();
}

Expand Down
1 change: 1 addition & 0 deletions src/panels/config/backup/ha-config-backup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class HaConfigBackup extends SubscribeMixin(HassRouterPage) {
settings: {
tag: "ha-config-backup-settings",
load: () => import("./ha-config-backup-settings"),
cache: true,
},
location: {
tag: "ha-config-backup-location",
Expand Down

0 comments on commit 3f2e2bc

Please sign in to comment.