Skip to content

Commit 0d7eae8

Browse files
authored
Merge pull request #225 from vadymshymko/212-click-not-working-in-carousel-items-after-swipe
212 click not working in carousel items after swipe
2 parents cd392d5 + 244c681 commit 0d7eae8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-simply-carousel",
3-
"version": "9.1.1",
3+
"version": "9.1.2",
44
"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",
55
"files": [
66
"dist/"

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,7 @@ function ReactSimplyCarousel({
681681
function preventClick(clickEvent: TouchEvent | MouseEvent) {
682682
clickEvent.preventDefault();
683683
clickEvent.stopPropagation();
684+
clickEvent.target?.removeEventListener('click', preventClick as () => {});
684685
}
685686

686687
function handleListSwipe(event: TouchEvent | MouseEvent) {

0 commit comments

Comments
 (0)