aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-08-03 18:32:40 -0700
committerGitHub <[email protected]>2016-08-03 18:32:40 -0700
commit0416f761dddae04a1b4d3ce70afece518330ca4d (patch)
treee80b4b9c64907fbe13e8299d9f76fed2b3fecf40
parent5164e542b25893ad3ede0fea5bd85d721ee43376 (diff)
parent0f25df1dff1b73f1558271ce51f3b1062e2a1baa (diff)
downloadbootstrap-0416f761dddae04a1b4d3ce70afece518330ca4d.tar.xz
bootstrap-0416f761dddae04a1b4d3ce70afece518330ca4d.zip
Merge pull request #20434 from vanduynslagerp/fix-20410
Fix dropdown example in docs (Fix #20410)
-rw-r--r--docs/components/dropdowns.md16
1 files changed, 1 insertions, 15 deletions
diff --git a/docs/components/dropdowns.md b/docs/components/dropdowns.md
index affaadc6e..4511d6d32 100644
--- a/docs/components/dropdowns.md
+++ b/docs/components/dropdowns.md
@@ -36,7 +36,7 @@ And with `<a>` elements:
{% example html %}
<div class="dropdown open">
- <a class="btn btn-secondary dropdown-toggle" href="http://example.com" id="dropdownMenuLink" data-target="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+ <a class="btn btn-secondary dropdown-toggle" href="http://example.com" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown link
</a>
@@ -500,20 +500,6 @@ Add `data-toggle="dropdown"` to a link or button to toggle a dropdown.
</div>
{% endhighlight %}
-To keep URLs intact with link buttons, use the `data-target` attribute instead of `href="#"`.
-
-{% highlight html %}
-<div class="dropdown">
- <a id="dLabel" data-target="#" href="http://example.com" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- Dropdown trigger
- </a>
-
- <div class="dropdown-menu" aria-labelledby="dLabel">
- ...
- </div>
-</div>
-{% endhighlight %}
-
### Via JavaScript
Call the dropdowns via JavaScript: