From: Chris Rebert Date: Tue, 15 Oct 2013 03:10:35 +0000 (-0700) Subject: In docs, recommend only
(not ) for putting tooltips on disabled elements X-Git-Tag: v3.0.1~39^2~29^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11094%2Fhead;p=thirdparty%2Fbootstrap.git In docs, recommend only
(not ) for putting tooltips on disabled elements Per issue comments, `display: inline` elements like don't work for this. Resolves #10049 --- diff --git a/javascript.html b/javascript.html index 81f3d1e1cf..95dcc3acce 100644 --- a/javascript.html +++ b/javascript.html @@ -843,7 +843,7 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {

Tooltips on disabled elements require wrapper elements

-

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

+

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.

Usage

@@ -1025,7 +1025,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {

Popovers on disabled elements require wrapper elements

-

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

+

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.

Static popover