Skip to content

Commit 9d34b8b

Browse files
committed
Merge pull request #10445 from shonin/dropdownmenu-scroll-fix
Always prevent default on down arrow on the dropdown menu
1 parent 6a45d1a commit 9d34b8b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

js/foundation.dropdownMenu.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,8 @@ class DropdownMenu extends Plugin {
173173
});
174174

175175
var nextSibling = function() {
176-
if (!$element.is(':last-child')) {
177-
$nextElement.children('a:first').focus();
178-
e.preventDefault();
179-
}
176+
$nextElement.children('a:first').focus();
177+
e.preventDefault();
180178
}, prevSibling = function() {
181179
$prevElement.children('a:first').focus();
182180
e.preventDefault();

0 commit comments

Comments
 (0)