-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
Comments
Fixed in our current code base see : https://github.com/twbs/bootstrap/blob/v4-dev/js/src/collapse.js#L364 |
No it is not, have you tried it? |
Yes my bad 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: