]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
When opening the dropdown, focus() the dropdown-toggle BEFORE triggering 'shown.bs...
authorCollin Donahue-Oponski <collindo@gmail.com>
Wed, 30 Oct 2013 01:56:09 +0000 (19:56 -0600)
committerChris Rebert <code@rebertia.com>
Wed, 9 Apr 2014 05:36:21 +0000 (22:36 -0700)
Closes #11281 by merging it (after rebasing & resolving conflicts)

js/dropdown.js

index b35ce562d000cc823ebaa52e9e2a559b9c8f30a0..905ee3979e0b20aa0a72019f0ce57328e266f815 100644 (file)
 
       if (e.isDefaultPrevented()) return
 
+      $this.trigger('focus')
+
       $parent
         .toggleClass('open')
         .trigger('shown.bs.dropdown', relatedTarget)
-
-      $this.trigger('focus')
     }
 
     return false