missing disconnectedCallback in energy-period-selector (#18790)

This commit is contained in:
karwosts 2023-11-28 08:27:08 -08:00 committed by GitHub
parent 05a22e3271
commit 400b8034e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,6 +103,7 @@ export class HuiEnergyPeriodSelector extends SubscribeMixin(LitElement) {
}
public disconnectedCallback(): void {
super.disconnectedCallback();
if (this._resizeObserver) {
this._resizeObserver.disconnect();
}