mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
* Add missing hui-root callback, fixes #20854 * Set scroll event listener on hui-root to passive
This commit is contained in:
parent
d1ce06e368
commit
2dd7e598d5
@ -513,6 +513,13 @@ class HUIRoot extends LitElement {
|
||||
});
|
||||
}
|
||||
|
||||
public connectedCallback(): void {
|
||||
super.connectedCallback();
|
||||
window.addEventListener("scroll", this._handleWindowScroll, {
|
||||
passive: true,
|
||||
});
|
||||
}
|
||||
|
||||
public disconnectedCallback(): void {
|
||||
super.disconnectedCallback();
|
||||
window.removeEventListener("scroll", this._handleWindowScroll);
|
||||
|
Loading…
x
Reference in New Issue
Block a user