]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
added e.stopPropagation() to accordion to prevent double-clicks when bound to doc... 8165/head
authorSpencer Carney <spencer.carney@crowdrise.com>
Fri, 12 Feb 2016 19:58:20 +0000 (11:58 -0800)
committerSpencer Carney <spencer.carney@crowdrise.com>
Fri, 12 Feb 2016 19:58:20 +0000 (11:58 -0800)
js/foundation/foundation.accordion.js

index 5cb1cb6a4479372539f4726673ee3f0690424c95..be0b194f59eac93842cfbb988bd6c0bb24724f08 100644 (file)
@@ -36,6 +36,7 @@
             active_content = siblings.filter('.' + settings.active_class);
 
         e.preventDefault();
+        e.stopPropagation();
 
         if (accordion.attr(self.attr_name())) {
           siblings = siblings.add('[' + groupSelector + '] dd > ' + '.' + settings.content_class + ', [' + groupSelector + '] li > ' + '.' + settings.content_class);