-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Tooltips and Popovers inside a Modal don't work #5014
Comments
I noticed the tooltips in a modal on my site weren't working either. Rolling back from 2.1.1 css file brings them back. |
I think that tooltips on elements inside a modal are supposed to get a higher z-index which isn't happening:
The tooltips themselves aren't actually in a |
agree with @jonypawks |
Hey @HannesWaechter, Thanks for opening this issue! Unfortunately, it looks like it fails to pass the criteria neccessary for submitting to bootstrap. The following things are currently failing:
For a full list of issue filing guidelines, please refer to the bootstrap issue filing guidelines. thanks! |
Hey @malandrew, thanks for the hint, here is a Fiddle: http://jsfiddle.net/BqEzt/1/ now let's see if I'm able to update the issue, because it's not only in the documentation.... |
That has been fixed in 2.1.2, commit @88b1e44dd61afd8f08761346555521bd216ed73a |
Yup, resolved in 2.1.2-wip. |
2.3.1 still has this bug. |
@mchiareli: goes under the modal's header, but seems to work otherwise: http://jsfiddle.net/p6BAD/ |
2.3.2 has this bug as well, how to solve it? For now I have used z-index:1060 from css, but the popover positioning is not correct! |
this is still an issue for me in 3.1.1 version 👎 |
@kiev78 Works fine AFAICT: http://jsfiddle.net/32UEs/3/ |
http://jsfiddle.net/32UEs/4/ - popover doesn't work |
It's not working because you've assigned the container to be the body element. If you change the data-container attribute to be a selector for something inside the modal-body it will work just fine: |
Thanks for clarifying @jonypawks - I completely missed that! It is not a bug 👍 |
The container attribute should be unique. Because my project have several modal instance and I tried using .modal-body and it does not enable popover, when I changed the container to some unique ID within modal dialog it does work. I thought this would be using parent element context, but may be it behaves differently. |
Thanks to @jonypawks:
Tooltips and popovers inside a modal are supposed to get a higher z-index than the modal itself. The CSS Selector
doesn't apply, since the tooltips and popovers themselves aren't in the .modal container, but only in the body.
For more details, see Comment 2 by @jonypawks.
Here is a Fiddle: http://jsfiddle.net/BqEzt/1/
Probably dropdowns in modals aren't working either.
The text was updated successfully, but these errors were encountered: