-
-
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
Document that calling tooltip/popover .show()/.hide() qualifies as manual triggering #15465
Comments
Correct, there's no built-in way. That's kinda the nature of manual (non-auto) triggering. Showing/hiding of the tooltip is under your complete (but manual) control.
Correct. Perhaps we should add an explanation in the
Well, since Philosophically speaking, honoring
We're trying to cut down on callouts actually (it's a "if everything is top-priority, then nothing is" problem). Given that we've had few, if any, other complaints about this particular issue, a callout doesn't seem warranted yet. |
Thanks for the clarifications.
Yep, understandable. To be honest, I think the way it behaves now is fine. At first, I was a bit "ugh, really?" when I realized that I had to
Sure — a callout is overkill. Just a quick note in the docs somewhere in the section covering popovers would suffice, I think. |
Sorry for commenting on a closed issue. I saw this via If I call show on a tooltip, it still respects the hide delay (despite it being a manual trigger). http://jsfiddle.net/on6czwz2/3/ . Is my understanding of this issue incorrect? |
Your In other words, the manual-ness only applies to the immediate action and doesn't infect other actions (like the subsequent |
This is good to know. It wasn't apparent from the docs. |
According to http://getbootstrap.com/javascript/#popovers there doesn't appear to be a way to auto-hide a popover, that is manually shown/triggered, after some interval.
As such, I end up doing this in my application:
Looking at the documentation on the
data-delay
attribute for popovers, I see "does not apply to manual trigger type". I conjecture mybutton.popover('show')
falls into this manual trigger category and as a result I'm responsible for hiding the popover myself?Somewhat expected, I tried
<button data-delay='{"hide":3000}'>
without the JS above and this failed miserably.Shouldn't a popover I trigger manually be hidden after the hide delay I provide in the
data-delay
attribute? If not, I'd like to suggest an update the documentation at http://getbootstrap.com/javascript/#popovers to be a bit clearer with a red callout highlighting this limitation.The text was updated successfully, but these errors were encountered: