diff --git a/src/cards/my-slider.ts b/src/cards/my-slider.ts index d01a4d8..0b8ddb3 100644 --- a/src/cards/my-slider.ts +++ b/src/cards/my-slider.ts @@ -174,7 +174,7 @@ export class MySliderV2 extends LitElement { } const setElements = (event) => { - const sliderMaybe = event.path.find(el => el.classList.contains('my-slider-custom')) + const sliderMaybe = event.composedPath().find(el => el.classList.contains('my-slider-custom')) if (!sliderMaybe) { this.sliderEl = event.target }