Skip to content

Commit

Permalink
Merge pull request #32 from tmooze/issue-29
Browse files Browse the repository at this point in the history
Update my-slider.ts
  • Loading branch information
AnthonMS authored Jul 29, 2022
2 parents f0f562c + 3b01077 commit 7982342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cards/my-slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7982342

Please sign in to comment.