-
-
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
Tooltip doesn't work on modal version bootstap 2.1.1 #4980
Comments
And popover also is not work on modal version bootstrap 2.1.1 |
It was OK (at least for tooltip) before d797a5f |
The z-index for tooltips, popovers ... has changed To stop all these z-index issues with tooltips and popovers: |
The tooltip plugin already supports this. If you prefix your placement with $('#element').tooltip({
placement: 'in top'
}); |
@mlynch : sadly, that did not fix it for me. I have tried to do it through data-placement="in top" and the snippet you posted. |
@Nickvda: have you tried changing the 2 lines in js (look at the pull request)? This solved all z-index issues for me. |
@Nickvda Hmm, well I had the exact same problem reported in this issue and my snippet works for me, so I'm not really sure what the issue is. You could try using the JS snippet rather than a data attribute. I just realized though that I am using the code from master. I grabbed the code on September 16th. |
@demike : where exactly? Gotta admit JS isn't my strong point. @mlynch : neither the JS snippet nor the data attribute work (in a modal). When out of a modal both tooltips and popovers work like a charm. Thanks for the feedback:) P.S. I also grabbed the latest version of Bootstrap just to be sure, didn't help much though. |
Look at the diff in pull request #5071. The only thing this patch does: Do not attach the tooltips / popovers to the body but leave them in the same |
For this issue i think is a bug on CSS, see #5186 |
@Nickvda Not to beat a dead horse, but make sure if you are using the |
@mlynch thnx- gonna check that tomorrow (no access at home yet >.>) :D |
@mlynch : that doesn't seem to work either. However, I did forget to mention it is in, a modal->tab->tooltip. If it is directly in a modal, it does work. |
fixed in 2.1.2 - thanks guys! |
This change totally screws with popover styling if the popover is added inside of elements that have specific styles that cascade down to children.... very frustrating. |
@polomasta I created a fiddle with a fix for this, just havent submitted the pull request yet.. - http://jsfiddle.net/R23KB/4/ |
On official http://twitter.github.com/bootstrap/javascript.html#modals
The text was updated successfully, but these errors were encountered: