-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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 in Tabs in Modal don't position correctly #13322
Comments
Don't forcibly show tooltips on hidden elements? |
Ok so I'm using tooltips like below: Above depicts a form split over 3 tabs, and in a modal. When there is a validation error I manually trigger the tooltips. After reading the docs a little more it seems popovers may be better suited to this problem, however, following this fiddle (http://jsfiddle.net/mCy6V/3/), they also behave incorrectly like the tooltips not positioning correctly. I'm quite new to javascript in general so if my understanding is wrong I apologize in advance: I see what your saying about applying things to hidden elements and how that is likely the problem, however it seems like my use case is fairly legitimate for those popovers/tooltips and they do not work just for the fact that are "hidden" in a tab... hence it is a bug. That's my reasoning anyway, look forward to your response. |
if you're using tips manually like that, you'll have to tell them to reposition themselves when you change the dom on them like that manually. if you need help figuring that out, please refer to the bootstrap mailing list. cheer! |
hint: basic idea is on tab change, call tooltip hide/show, etc. |
@fat There is no mailing list anymore. We're referring folks to StackOverflow nowadays. |
@cvrebert oh cool, thanks |
thanks for the help @cvrebert and @fat , I modified the fiddle for a proof of concept, in case any one else runs into this problem: http://jsfiddle.net/mCy6V/5/ |
For anyone finding this ticket in google after hitting this issue, consider the using the tooltip('update') in a shown.bs.tab event:
|
My first issue submission. I searched and did not find anything related to this issue here or on google, also checked the docs and nothing.
The fiddle displays the issue, http://jsfiddle.net/mCy6V/
I only tested in FF28
To reproduce in the fiddle:
I think the modal in the tooltip/modal/tab combination is not the issue, its more the tooltip/tab, but that is a fiddle for another day...
The text was updated successfully, but these errors were encountered: