diff --git a/src/core/events/onTouchStart.js b/src/core/events/onTouchStart.js index 2a3760725..26d76f424 100644 --- a/src/core/events/onTouchStart.js +++ b/src/core/events/onTouchStart.js @@ -45,7 +45,13 @@ export default function onTouchStart(event) { // change target el for shadow root component const swipingClassHasValue = !!params.noSwipingClass && params.noSwipingClass !== ''; - if (swipingClassHasValue && e.target && e.target.shadowRoot && event.path && event.path[0]) { + // eslint-disable-next-line + const eventPath = event.composedPath + ? event.composedPath() + : event.path + ? event.path[0] + : undefined; + if (swipingClassHasValue && e.target && e.target.shadowRoot && eventPath) { $targetEl = $(event.path[0]); }