From 9c25f5c06ee54c681919343524a55ebe9904c0ab Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Thu, 24 Apr 2014 18:06:42 -0700 Subject: [PATCH] document that show-ing a tooltip/popover on a hidden element doesn't work; fixes #13362 --- docs/_includes/js/popovers.html | 4 ++++ docs/_includes/js/tooltips.html | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docs/_includes/js/popovers.html b/docs/_includes/js/popovers.html index 95868af1a4..b2f58fbc48 100644 --- a/docs/_includes/js/popovers.html +++ b/docs/_includes/js/popovers.html @@ -16,6 +16,10 @@

Popovers in button groups and input groups require special setting

When using popovers 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 popover is triggered).

+
+

Don't try to show popovers on hidden elements

+

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

+

Popovers on disabled elements require wrapper elements

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

diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index 83ef82e06c..64ea06e85e 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.