Dropdown: jQuery throws with empty ID selector
Created by: gpakosz
Hello,
While following the documentation, I've stumbled upon Dropdown examples: http://getbootstrap.com/javascript/#via-data-attributes-1
<div class="dropdown">
<a id="dLabel" data-target="#" href="http://example.com" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Dropdown trigger
<span class="caret"></span>
</a>
<ul class="dropdown-menu" aria-labelledby="dLabel">
...
</ul>
</div>
When trying it with jQuery v2.1.3
, everything works fine and clicking the anchor displays the dropdown.
However, when using jQuery v3.1.0
clicking the anchor follows the link.