-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Click events on clones are not working #74
Comments
Also running into this. Splide uses |
Tried using "rewind", the behavior is slightly different but similar to "Loop". But in 0.7.12 version "rewind" does not work |
I got it working with <Splide onClick={(splide, slide, event) => doSomething()}></Splide> |
Has there been any solution shared to fix this issue? |
One option that might work (have not explored too deeply) is to write your own |
Not using React, but encountered the same issue.
instead of:
|
Checks
Version
0.7.12
Description
when you are using the splide with type="loop" then there will be clones of your element on front and end of the slide. Those clones do not fire the click event that is attached on the element.
Screen.Recording.2023-08-02.at.12.53.49.mov
Reproduction Link
https://codesandbox.io/s/react-splide-no-clickevent-on-clone-jfrlnc
Steps to Reproduce
Expected Behaviour
For the clone the event should be fired linke for the original slide. So the clone for the slide with the index 9 should log: "#9 clicked"
The text was updated successfully, but these errors were encountered: