Skip to content

Click events on clones are not working #74

@baeroe

Description

@baeroe

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

  1. open attached codesandbox
  2. slide the left or right till you have an clone visible in your slider
  3. Press it and watch console for log ( e.g. 'x clicked')

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions