From: Elliot Charney Date: Fri, 21 Jul 2017 13:59:43 +0000 (-0400) Subject: Always prevent default on down arrow on the dropdown menu X-Git-Tag: v6.4.2-rc2~1^2~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10445%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git 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();