From 9c25f5c06ee54c681919343524a55ebe9904c0ab Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Thu, 24 Apr 2014 18:06:42 -0700 Subject: document that show-ing a tooltip/popover on a hidden element doesn't work; fixes #13362 --- docs/_includes/js/tooltips.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/_includes/js/tooltips.html') diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index 83ef82e06..64ea06e85 100644 --- a/docs/_includes/js/tooltips.html +++ b/docs/_includes/js/tooltips.html @@ -36,6 +36,10 @@

Tooltips in button groups and input groups require special setting

When using tooltips on elements within a .btn-group or an .input-group, you'll have to specify the option container: 'body' (documented below) to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip is triggered).

+
+

Don't try to show tooltips on hidden elements

+

Invoking $(...).tooltip('show') when the target element is display: none; will cause the tooltip to be incorrectly positioned.

+

Tooltips on disabled elements require wrapper elements

To add a tooltip to a disabled or .disabled element, put the element inside of a <div> and apply the tooltip to that <div> instead.

-- cgit v1.2.3