From 8711e06e89d88e7ef97de57b0fa76f196567b145 Mon Sep 17 00:00:00 2001 From: Elliot Charney Date: Fri, 21 Jul 2017 09:59:43 -0400 Subject: [PATCH] Always prevent default on down arrow on the dropdown menu --- js/foundation.dropdownMenu.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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(); -- 2.47.2