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

prevent navigating to area href when modal target #20462

Merged
merged 1 commit into from
Nov 26, 2016

Conversation

maxbeatty
Copy link
Contributor

fixes #18796 by preventing default behavior of navigation event like anchors

.on('click.bs.modal.data-api', function (event) {
assert.notOk(event.isDefaultPrevented(), 'navigating to href will happen')

setTimeout(function () {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexpected function expression prefer-arrow-callback

@mdo mdo added this to the v4.0.0-alpha.6 milestone Nov 26, 2016
@mdo mdo merged commit bfa714a into twbs:v4-dev Nov 26, 2016
@mdo mdo mentioned this pull request Nov 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants