Fix issue causing carousel to not correctly scroll.

This commit is contained in:
Dermot Duffy
2023-10-07 15:36:03 -07:00
parent b0a8ad3e5f
commit cf8935da73
3 changed files with 7 additions and 6 deletions
+1
View File
@@ -60,6 +60,7 @@ export class FrigateCardCarousel extends LitElement {
// plugins (which may have registered event handlers) to also be destroyed.
// The carousel will automatically reconstruct if the component is re-rendered.
this._carousel?.destroy();
this._carousel = null;
super.disconnectedCallback();
}