kopia lustrzana https://github.com/shoelace-style/shoelace
fix(carousel): add instance check to isCarouselItem (#1684)
rodzic
1087fe23f7
commit
597a06c97c
|
@ -235,8 +235,8 @@ export default class SlCarousel extends ShoelaceElement {
|
|||
}
|
||||
}
|
||||
|
||||
private isCarouselItem(node: HTMLElement): node is SlCarouselItem {
|
||||
return node.tagName.toLowerCase() === 'sl-carousel-item';
|
||||
private isCarouselItem(node: Node): node is SlCarouselItem {
|
||||
return node instanceof Element && node.tagName.toLowerCase() === 'sl-carousel-item';
|
||||
}
|
||||
|
||||
private handleSlotChange = (mutations: MutationRecord[]) => {
|
||||
|
|
Ładowanie…
Reference in New Issue