Bind slotchange calls.

This commit is contained in:
Dermot Duffy
2022-07-10 14:48:58 -07:00
parent 0788b3fbfe
commit 898a46fda2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ export class FrigateCardCarousel extends LitElement {
${showPrevious ? html`<slot name="previous"></slot>` : ``}
<div class="embla__viewport">
<div class="embla__container">
<slot ${ref(this._refSlot)} @slotchange=${this._slotChanged}></slot>
<slot ${ref(this._refSlot)} @slotchange=${this._slotChanged.bind(this)}></slot>
</div>
</div>
${showNext ? html`<slot name="next"></slot>` : ``}