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

Collapse click handler should only call preventDefault when a target was found #22866

Closed
nelisbijl opened this issue Jun 19, 2017 · 3 comments
Closed
Labels

Comments

@nelisbijl
Copy link

version 4.0.0-alpha.6

event.preventDefault is called regardless of whether a target is found.
In case no target exists, it prevents other code from being executed

https://codepen.io/anon/pen/eRvgYq

@Johann-S
Copy link
Member

@nelisbijl
Copy link
Author

No it is not, have you tried it?

@Johann-S
Copy link
Member

Yes my bad 👍

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

No branches or pull requests

2 participants