From 0f25df1dff1b73f1558271ce51f3b1062e2a1baa Mon Sep 17 00:00:00 2001 From: Pierre-Denis Vanduynslager <pierre.denis.vanduynslager@gmail.com> Date: Tue, 2 Aug 2016 01:38:32 -0400 Subject: [PATCH] Fix dropdown example in docs (Fix #20410) --- docs/components/dropdowns.md | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/docs/components/dropdowns.md b/docs/components/dropdowns.md index affaadc6e8..4511d6d323 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: -- GitLab