mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix a browser hang with charts in grids (#17244)
This commit is contained in:
parent
3bf8739a7c
commit
d66a8a65b6
@ -184,7 +184,17 @@ export class StateHistoryCharts extends LitElement {
|
|||||||
};
|
};
|
||||||
|
|
||||||
protected shouldUpdate(changedProps: PropertyValues): boolean {
|
protected shouldUpdate(changedProps: PropertyValues): boolean {
|
||||||
return !(changedProps.size === 1 && changedProps.has("hass"));
|
if (changedProps.size === 1 && changedProps.has("hass")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (
|
||||||
|
changedProps.size === 1 &&
|
||||||
|
changedProps.has("_maxYWidth") &&
|
||||||
|
changedProps.get("_maxYWidth") === this._maxYWidth
|
||||||
|
) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected willUpdate() {
|
protected willUpdate() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user