We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 23238db + 47db483 commit 34aeaf3Copy full SHA for 34aeaf3
src/collapsible.ts
@@ -68,12 +68,12 @@ export class Collapsible extends Component<CollapsibleOptions> {
68
69
// Open active
70
const activeBodies: HTMLElement[] = Array.from(this.el.querySelectorAll('li.active > .collapsible-body'));
71
- if (this.options.accordion)
+ if (this.options.accordion) {
72
if (activeBodies.length > 0) {
73
// Accordion => open first active only
74
this._setExpanded(activeBodies[0]);
75
}
76
- else {
+ } else {
77
// Expandables => all active
78
activeBodies.forEach(el => this._setExpanded(el));
79
0 commit comments