Skip to content

Commit e3f3542

Browse files
committed
Fixes twbs#6823: add some docs notes about tooltips in input groups
1 parent c8874ff commit e3f3542

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

docs/assets/js/bootstrap-tooltip.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
, fixTitle: function () {
246246
var $e = this.$element
247247
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
248-
$e.attr('data-original-title', $e.attr('title') || '').removeAttr('title')
248+
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
249249
}
250250
}
251251

docs/assets/js/bootstrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@
12871287
, fixTitle: function () {
12881288
var $e = this.$element
12891289
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
1290-
$e.attr('data-original-title', $e.attr('title') || '').removeAttr('title')
1290+
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
12911291
}
12921292
}
12931293

docs/assets/js/bootstrap.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/javascript.html

+3
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,9 @@ <h3>Four directions</h3>
785785
</div>
786786

787787

788+
<h3>Tooltips in input groups</h3>
789+
<p>When using tooltips and popovers with the Bootstrap input groups, you'll have to set the <code>container</code> (documented below) option to avoid unwanted side effects.</p>
790+
788791
<hr class="bs-docs-separator">
789792

790793

docs/templates/pages/javascript.mustache

+3
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,9 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
715715
</div>{{! /example }}
716716

717717

718+
<h3>{{_i}}Tooltips in input groups{{/i}}</h3>
719+
<p>{{_i}}When using tooltips and popovers with the Bootstrap input groups, you'll have to set the <code>container</code> (documented below) option to avoid unwanted side effects.{{/i}}</p>
720+
718721
<hr class="bs-docs-separator">
719722

720723

0 commit comments

Comments
 (0)