mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Check supported func properly
This commit is contained in:
parent
ed7b81e7a4
commit
8c1aff7505
@ -287,7 +287,7 @@ class HaSidebar extends LitElement {
|
||||
if (changedProps.has("alwaysExpand")) {
|
||||
this.expanded = this.alwaysExpand;
|
||||
}
|
||||
if (SUPPORT_SCROLL_IF_NEEDED && !changedProps.has("hass")) {
|
||||
if (SUPPORT_SCROLL_IF_NEEDED || !changedProps.has("hass")) {
|
||||
return;
|
||||
}
|
||||
const oldHass = changedProps.get("hass") as HomeAssistant | undefined;
|
||||
|
Loading…
x
Reference in New Issue
Block a user