From 87793eef9eff72e5eed281bdf0976925a89b4370 Mon Sep 17 00:00:00 2001 From: Marius Olbertz Date: Thu, 7 Jul 2016 18:43:28 +0200 Subject: [PATCH] Changed preventDefault behavior to allow keyboard activation of links. --- js/foundation.drilldown.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/foundation.drilldown.js b/js/foundation.drilldown.js index 75a1f757e..449470e6d 100644 --- a/js/foundation.drilldown.js +++ b/js/foundation.drilldown.js @@ -188,13 +188,14 @@ class Drilldown { $element.parent('li').parent('ul').parent('li').children('a').first().focus(); }, 1); }); + return true; } else if ($element.is(_this.$submenuAnchors)) { _this._show($element.parent('li')); $element.parent('li').one(Foundation.transitionend($element), function(){ $element.parent('li').find('ul li a').filter(_this.$menuItems).first().focus(); }); + return true; } - return true; }, handled: function(preventDefault) { if (preventDefault) { -- 2.47.2