From: Marius Olbertz Date: Thu, 7 Jul 2016 16:43:28 +0000 (+0200) Subject: Changed preventDefault behavior to allow keyboard activation of links. X-Git-Tag: v6.2.4-rc1~47^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9002%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Changed preventDefault behavior to allow keyboard activation of links. --- 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) {