]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix #12527
authorChris Rebert <code@rebertia.com>
Mon, 3 Feb 2014 06:51:19 +0000 (22:51 -0800)
committerChris Rebert <code@rebertia.com>
Mon, 3 Feb 2014 06:51:19 +0000 (22:51 -0800)
docs/javascript.html

index e022767e3205490a389791489c1a95986d75fbd5..8932ff295a7242789443ab7c2f24896db091aa30 100644 (file)
@@ -548,6 +548,10 @@ $('#myModal').on('hidden.bs.modal', function (e) {
 {% highlight js %}
 $('.dropdown-toggle').dropdown()
 {% endhighlight %}
+  <div class="bs-callout bs-callout-info">
+    <h4><code>data-toggle="dropdown"</code> still required</h4>
+    <p>Regardless of whether you call your dropdown via JavaScript or instead use the data-api, <code>data-toggle="dropdown"</code> is always required to be present on the dropdown's trigger element.</p>
+  </div>
 
   <h3>Options</h3>
   <p><em>None</em></p>