Bind slotchange calls.
This commit is contained in:
@@ -217,7 +217,7 @@ export class FrigateCardCarousel extends LitElement {
|
|||||||
${showPrevious ? html`<slot name="previous"></slot>` : ``}
|
${showPrevious ? html`<slot name="previous"></slot>` : ``}
|
||||||
<div class="embla__viewport">
|
<div class="embla__viewport">
|
||||||
<div class="embla__container">
|
<div class="embla__container">
|
||||||
<slot ${ref(this._refSlot)} @slotchange=${this._slotChanged}></slot>
|
<slot ${ref(this._refSlot)} @slotchange=${this._slotChanged.bind(this)}></slot>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
${showNext ? html`<slot name="next"></slot>` : ``}
|
${showNext ? html`<slot name="next"></slot>` : ``}
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ export class FrigateCardDrawer extends LitElement {
|
|||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
: ''}
|
: ''}
|
||||||
<slot ${ref(this._refSlot)} @slotchange=${this._slotChanged}></slot>
|
<slot ${ref(this._refSlot)} @slotchange=${this._slotChanged.bind(this)}></slot>
|
||||||
</side-drawer>
|
</side-drawer>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user