mirror of
https://github.com/home-assistant/frontend.git
synced 2026-02-14 23:18:21 +00:00
Cleanup
This commit is contained in:
@@ -407,13 +407,9 @@ export class SectionsView extends LitElement implements LovelaceViewElement {
|
||||
}
|
||||
}
|
||||
|
||||
private _getScrollContainer(): Element | null {
|
||||
// The scroll container is the hui-view-container parent
|
||||
return this.closest("hui-view-container");
|
||||
}
|
||||
|
||||
private _toggleView() {
|
||||
const scrollContainer = this._getScrollContainer();
|
||||
// The scroll container is the hui-view-container parent
|
||||
const scrollContainer = this.closest("hui-view-container");
|
||||
const scrollTop = scrollContainer?.scrollTop ?? 0;
|
||||
|
||||
// Save current scroll position
|
||||
|
||||
Reference in New Issue
Block a user