From: Kevin Ball Date: Fri, 21 Jul 2017 19:02:32 +0000 (-0700) Subject: Merge pull request #10445 from shonin/dropdownmenu-scroll-fix X-Git-Tag: v6.4.2-rc1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d34b8bad04d5d5a80b9564de1dc575d4924c4b1;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Merge pull request #10445 from shonin/dropdownmenu-scroll-fix Always prevent default on down arrow on the dropdown menu --- diff --git a/js/foundation.dropdownMenu.js b/js/foundation.dropdownMenu.js index 5e2c6974c..1f04caff5 100644 --- a/js/foundation.dropdownMenu.js +++ b/js/foundation.dropdownMenu.js @@ -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();