Skip to content

Commit 6eb6337

Browse files
committed
Merge pull request twbs#14674 from twbs/fix-14478
Document that the autofocus attribute doesn't work in modals.
2 parents e4f8684 + d6903e4 commit 6eb6337

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/_includes/js/modal.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<div class="bs-docs-section">
22
<h1 id="modals" class="page-header">Modals <small>modal.js</small></h1>
3-
4-
<h2 id="modals-examples">Examples</h2>
53
<p>Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.</p>
64

75
<div class="bs-callout bs-callout-warning" id="callout-stacked-modals">
@@ -17,6 +15,10 @@ <h4>Mobile device caveats</h4>
1715
<p>There are some caveats regarding using modals on mobile devices. <a href="../getting-started/#support-fixed-position-keyboards">See our browser support docs</a> for details.</p>
1816
</div>
1917

18+
<p><strong class="text-danger">Due to how HTML5 defines its semantics, the <code>autofocus</code> HTML attribute has no effect in Bootstrap modals.</strong></p>
19+
20+
<h2 id="modals-examples">Examples</h2>
21+
2022
<h3>Static example</h3>
2123
<p>A rendered modal with header, body, and set of actions in the footer.</p>
2224
<div class="bs-example bs-example-modal">

0 commit comments

Comments
 (0)