From 3b010775830f89eb8c077257ab4086be28e0c3e4 Mon Sep 17 00:00:00 2001 From: Timo Date: Tue, 26 Jul 2022 20:14:46 +0200 Subject: [PATCH] Update my-slider.ts Solves issue #29. Tested with MacOS Safari Version 15.5 and Safari on iOS 15.6 --- src/cards/my-slider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }