]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Changed preventDefault behavior to allow keyboard activation of links. 9002/head
authorMarius Olbertz <marius.olbertz@gmail.com>
Thu, 7 Jul 2016 16:43:28 +0000 (18:43 +0200)
committerMarius Olbertz <marius.olbertz@gmail.com>
Thu, 7 Jul 2016 16:43:28 +0000 (18:43 +0200)
js/foundation.drilldown.js

index 75a1f757e1e864fc35dc98a2992f38f74b1e75ee..449470e6dad65094f97f70e6897d4ea5c4a49c18 100644 (file)
@@ -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) {