]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Merge pull request #10445 from shonin/dropdownmenu-scroll-fix
authorKevin Ball <kmball11@gmail.com>
Fri, 21 Jul 2017 19:02:32 +0000 (12:02 -0700)
committerKevin Ball <kmball11@gmail.com>
Tue, 25 Jul 2017 00:11:13 +0000 (17:11 -0700)
Always prevent default on down arrow on the dropdown menu

js/foundation.dropdownMenu.js

index 5e2c6974cc1dda227de6d2697e1cebde14db7465..1f04caff5c0e1d64de9440a2aa45c947f08d6919 100644 (file)
@@ -173,10 +173,8 @@ class DropdownMenu extends Plugin {
       });
 
       var nextSibling = function() {
-        if (!$element.is(':last-child')) {
-          $nextElement.children('a:first').focus();
-          e.preventDefault();
-        }
+        $nextElement.children('a:first').focus();
+        e.preventDefault();
       }, prevSibling = function() {
         $prevElement.children('a:first').focus();
         e.preventDefault();