diff --git a/src/modules/esl-carousel/core/esl-carousel.slide.ts b/src/modules/esl-carousel/core/esl-carousel.slide.ts index 807dfc11da..b261a4e01b 100644 --- a/src/modules/esl-carousel/core/esl-carousel.slide.ts +++ b/src/modules/esl-carousel/core/esl-carousel.slide.ts @@ -51,6 +51,7 @@ export class ESLCarouselSlide extends ESLMixinElement { @ready protected override connectedCallback(): void { + if (!this.$carousel) return; this.$carousel?.addSlide && this.$carousel.addSlide(this.$host); super.connectedCallback(); this.updateA11y(); diff --git a/src/modules/esl-carousel/plugin/esl-carousel.plugin.ts b/src/modules/esl-carousel/plugin/esl-carousel.plugin.ts index dd5539eb13..6d73f52d2e 100644 --- a/src/modules/esl-carousel/plugin/esl-carousel.plugin.ts +++ b/src/modules/esl-carousel/plugin/esl-carousel.plugin.ts @@ -15,7 +15,7 @@ export abstract class ESLCarouselPlugin extends ESLMixinElement { return true; } else { const {is} = this.constructor as typeof ESLCarouselPlugin; - console.error('[ESL]: %o is not correct target for %o', $host, is); + console.debug('[ESL]: ESLCarousel plugin %s rejected for non correct target %o', is, $host); this.$host.removeAttribute(is); return false; }