<p dir="auto">Suggestion:<br>
Why is the default accordion behavior (open a single toggle and close all others) dependent on '.panel' class</p>
<p dir="auto">Couldn't this be decoupled into a data-attribute?</p>
<p dir="auto">e.g. data-toggle-option="single" (opens the clicked toggle, closes all others)<br>
data-toggle-option="individual" (opens each toggle independently, leaves opened toggles open)</p>
<p dir="auto">Source ref: <a href="https://github.com/twbs/bootstrap/blob/master/js/collapse.js#L43">https://github.com/twbs/bootstrap/blob/master/js/collapse.js#L43</a></p>
<p dir="auto">Hi, i found this pull request: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="13284254" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/7600" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/7600/hovercard" href="https://github.com/twbs/bootstrap/pull/7600">#7600</a></p>
<p dir="auto">In the latest version i see that the <code class="notranslate">parent</code> option is now dependent on the <code class="notranslate">.panel</code> class, i.e.:</p>
<p dir="auto"><code class="notranslate">var actives = this.$parent &amp;&amp; this.$parent.find('&gt; .panel &gt; .in')</code></p>
<p dir="auto">Why don't you just leave it like it was (<code class="notranslate">.collapse.in</code>) or better yet, just:</p>
<p dir="auto"><code class="notranslate">var actives = this.$parent &amp;&amp; this.$parent.find('.in')</code></p>
<p dir="auto">Or, i get it if the parent must have a class, to avoid conflicts with other libraries, but can you please explain what's up with depending on dom structure? (the double &gt; in the selector really don't look good to me)</p>
<p dir="auto">Oh and, the docs are way behind on this one. There's an <code class="notranslate">.accordion-group</code> class mentioned, but not saying how it should be used, and the example doesn't have one at all (yet it works, probably on an old bootstrap version).</p>
<p dir="auto">So basically, please decide on a structure and update the docs &amp; examples accordingly. If you want i could help you with some of the workload, as you see fit.</p>
<p dir="auto">Thank you.</p>