]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix for #7207 & #7099
authorzurbchris <chris@zurb.com>
Wed, 25 Nov 2015 18:22:41 +0000 (10:22 -0800)
committerzurbchris <chris@zurb.com>
Wed, 25 Nov 2015 18:22:41 +0000 (10:22 -0800)
js/foundation.drilldown.js

index 4333013a45fd7ce99c95cb766003f3b0b39b240e..87f74d5f400c38950110764b265b940bbe17475f 100644 (file)
@@ -41,7 +41,7 @@
      * @option
      * @example '<li><a>Back</a></li>'
      */
-    backButton: '<li class="js-drilldown-back" tabindex="0"><a>Back</a></li>',
+    backButton: '<li class="js-drilldown-back"><a>Back</a></li>',
     /**
      * Markup used to wrap drilldown menu. Use a class name for independent styling, or the JS applied class: `is-drilldown`.
      * @option
 
     $elem.off('click.zf.drilldown')
     .on('click.zf.drilldown', function(e){
-      e.stopImmediatePropagation();
-      e.preventDefault();
-
-      if(e.target !== e.currentTarget.firstElementChild){
-        return false;
+      if($(e.target).parentsUntil('ul', 'li').hasClass('is-drilldown-submenu-parent')){
+        e.stopImmediatePropagation();
+        e.preventDefault();
       }
+
+      // if(e.target !== e.currentTarget.firstElementChild){
+      //   return false;
+      // }
       _this._show($elem);
 
       if(_this.options.closeOnClick){