Skip to content
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

Slider do not process the click to preventDefault behavior. #942

Open
ralfonsoreyes opened this issue May 19, 2020 · 0 comments
Open

Slider do not process the click to preventDefault behavior. #942

ralfonsoreyes opened this issue May 19, 2020 · 0 comments

Comments

@ralfonsoreyes
Copy link

When we use the slide inside an anchor, I will subscribe to the slide, slideStop and SlideStart event but I cannot make work the preventDefault and the anchor still receive the initial click.
My current solution is:
this.bindings.on("click", ".slider", function (e) {
e.preventDefault();
})
I do not know if this the normal behavior of the slider, but I believe that in most cases it will be good to have a property in construction to specify the events that we want to prevent or stop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant