Skip to content

Commit ebd132c

Browse files
committed
Fixes twbs#12611: Mention limitation of one plugin's data attributes per element
1 parent 77d1601 commit ebd132c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

docs/javascript.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@ <h3 id="js-individual-compiled">Individual or compiled</h3>
1515
<p>Plugins can be included individually (using Bootstrap's individual <code>*.js</code> files), or all at once (using <code>bootstrap.js</code> or the minified <code>bootstrap.min.js</code>).</p>
1616

1717
<div class="bs-callout bs-callout-danger">
18-
<h4>Do not attempt to include both.</h4>
19-
<p>Both <code>bootstrap.js</code> and <code>bootstrap.min.js</code> contain all plugins in a single file.</p>
18+
<h4>Using the compiled JavaScript</h4>
19+
<p>Both <code>bootstrap.js</code> and <code>bootstrap.min.js</code> contain all plugins in a single file. Include only one.</p>
20+
</div>
21+
22+
<div class="bs-callout bs-callout-danger">
23+
<h4>Component data attributes</h4>
24+
<p>Don't mix data attributes from separate plugins on the same component. For example, a button cannot have a tooltip and toggle a modal. To accomplish this, use a wrapping element.</p>
2025
</div>
2126

2227
<div class="bs-callout bs-callout-danger">

0 commit comments

Comments
 (0)