aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorCarloMartini <[email protected]>2017-06-26 18:14:52 +0200
committerMark Otto <[email protected]>2017-08-10 22:49:15 -0700
commit0bb9fd20823d47055832364daa4c914d677267c4 (patch)
tree70e512a7c45786dfc977e534932b1a53e6728b5f /docs
parenteeb1ccab9b4ec08682b54d7fd1c4d0d9802b991d (diff)
downloadbootstrap-0bb9fd20823d47055832364daa4c914d677267c4.tar.xz
bootstrap-0bb9fd20823d47055832364daa4c914d677267c4.zip
Update modal.md
Removed a duplicate explanation.
Diffstat (limited to 'docs')
-rw-r--r--docs/4.0/components/modal.md7
1 files changed, 2 insertions, 5 deletions
diff --git a/docs/4.0/components/modal.md b/docs/4.0/components/modal.md
index 587a2b632..a903cd884 100644
--- a/docs/4.0/components/modal.md
+++ b/docs/4.0/components/modal.md
@@ -15,11 +15,6 @@ Before getting started with Bootstrap's modal component, be sure to read the fol
- Bootstrap only supports one modal window at a time. Nested modals aren't supported as we believe them to be poor user experiences.
- Modals use `position: fixed`, which can sometimes be a bit particular about its rendering. Whenever possible, place your modal HTML in a top-level position to avoid potential interference from other elements. You'll likely run into issues when nesting a `.modal` within another fixed element.
- Once again, due to `position: fixed`, there are some caveats with using modals on mobile devices. [See our browser support docs]({{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/browsers-devices/#modals-and-dropdowns-on-mobile) for details.
-- Lastly, the `autofocus` HTML attribute has no effect in modals. Here's how you can achieve the same effect with custom JavaScript.
-
-Keep reading for demos and usage guidelines.
-
-
- Due to how HTML5 defines its semantics, [the `autofocus` HTML attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autofocus) has no effect in Bootstrap modals. To achieve the same effect, use some custom JavaScript:
{% highlight js %}
@@ -28,6 +23,8 @@ $('#myModal').on('shown.bs.modal', function () {
})
{% endhighlight %}
+Keep reading for demos and usage guidelines.
+
## Examples
### Modal components