diff --git a/package.json b/package.json index 8361a8f..07ebbc7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-simply-carousel", - "version": "9.1.1", + "version": "9.1.2", "description": "A simple, lightweight, fully controlled isomorphic (with SSR support) React.js carousel component. Touch enabled and responsive. With support for autoplay and infinity options. Fully customizable", "files": [ "dist/" diff --git a/src/index.tsx b/src/index.tsx index 4d7ef99..9adfd37 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -681,6 +681,7 @@ function ReactSimplyCarousel({ function preventClick(clickEvent: TouchEvent | MouseEvent) { clickEvent.preventDefault(); clickEvent.stopPropagation(); + clickEvent.target?.removeEventListener('click', preventClick as () => {}); } function handleListSwipe(event: TouchEvent | MouseEvent) {