-
-
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
modals are not working with <area> links #18796
Comments
Never used an |
Well, this is weird. this jsfiddle (my first one, maybe I'm doing something wrong) does reproduce the bug, but the proper link, which should load the remote content inside the modal doesn't work either, even though it worked yesterday on my project. Well, at least you have the |
The code currently only prevents the default action (navigating to the link target) for Line 328 in d533bf0
Presumably we should add <area> to that if .
|
v4 is also affected: Line 497 in 64b9ad4
|
Updating |
@mishra-ankit Go for it. 😄 You will also need to add a testcase to the test suite; see https://github.com/twbs/bootstrap/tree/v4-dev/js/tests for info on how to do that. |
From the documentation on modals: http://getbootstrap.com/javascript/#modals-options
Adding a
href
attribute pointing to a page will load the page's content inside.modal-content
. It works for a regular link, it works for a button, but it doesn't work for a<area>
link.<area shape="poly" coords="..." data-toggle="modal" data-target="#modal">
This will toggle my
#modal
display with its default content.<area shape="poly" coords="..." data-toggle="modal" data-target="#modal" href="remote.html">
Won't toggle my modal display but simply follow the link instead.
The text was updated successfully, but these errors were encountered: