]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Document that the autofocus attribute doesn't work in modals. 14674/head
authorChris Rebert <code@rebertia.com>
Tue, 23 Sep 2014 23:53:09 +0000 (16:53 -0700)
committerChris Rebert <code@rebertia.com>
Tue, 23 Sep 2014 23:53:09 +0000 (16:53 -0700)
Closes #14478.

docs/_includes/js/modal.html

index b325c5d19c888622ae54a6e05eb264548b5686a9..e47464a4ce29631b28e4cc38a67026ce8187e964 100644 (file)
@@ -1,7 +1,5 @@
 <div class="bs-docs-section">
   <h1 id="modals" class="page-header">Modals <small>modal.js</small></h1>
-
-  <h2 id="modals-examples">Examples</h2>
   <p>Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.</p>
 
   <div class="bs-callout bs-callout-warning" id="callout-stacked-modals">
     <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>
   </div>
 
+  <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>
+
+  <h2 id="modals-examples">Examples</h2>
+
   <h3>Static example</h3>
   <p>A rendered modal with header, body, and set of actions in the footer.</p>
   <div class="bs-example bs-example-modal">