When using the bs-panel as a collapsible panel that is closed initially, like this:
{{#bs-panel heading="My Heading" collapsible=true open=false}}
..then the "collapsed" class is not added to the panel initially.
Suggestion:
The following line in bs-panel.hbs
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" {{bind-attr href=collapsibleBodyLink}}>
could look like this to solve the problem:
<a {{bind-attr class=":accordion-toggle open::collapsed"}} data-toggle="collapse" data-parent="#accordion" {{bind-attr href=collapsibleBodyLink}}>
Perhaps you'd prefer this to be solved through JS, but say the word and I'll submit a PR with this fix.
When using the bs-panel as a collapsible panel that is closed initially, like this:
{{#bs-panel heading="My Heading" collapsible=true open=false}}..then the "collapsed" class is not added to the panel initially.
Suggestion:
The following line in
bs-panel.hbscould look like this to solve the problem:
Perhaps you'd prefer this to be solved through JS, but say the word and I'll submit a PR with this fix.