From: Aaron Arney Date: Wed, 9 Dec 2015 22:16:09 +0000 (-0500) Subject: Issue #7441 Enable non-list elements in Accordions X-Git-Tag: v6.0.6~36^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=553d6528635b663b73d356b7f2a312212f47f925;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Issue #7441 Enable non-list elements in Accordions Instead of selecting an `li` element, I set the selector to `accordion-item`. I tested using nested div elements instead of a list and it worked correctly. --- diff --git a/js/foundation.accordion.js b/js/foundation.accordion.js index 336fe7d22..56eb8d0e8 100644 --- a/js/foundation.accordion.js +++ b/js/foundation.accordion.js @@ -55,7 +55,7 @@ */ Accordion.prototype._init = function() { this.$element.attr('role', 'tablist'); - this.$tabs = this.$element.children('li'); + this.$tabs = this.$element.children('.accordion-item'); this.$tabs.each(function(idx, el){ var $el = $(el),