We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ea51f3 commit 314b4eeCopy full SHA for 314b4ee
js/foundation.accordion.js
@@ -61,6 +61,10 @@ class Accordion extends Plugin {
61
});
62
63
var $initActive = this.$element.find('.is-active').children('[data-tab-content]');
64
+ // Remember if we already set up the initial state of the Accordion as it
65
+ // gives additional privileges in the Accordion methods (like opening
66
+ // multiple panels even with the "multiExpand" option is disabled)
67
+ // TODO: refactor and clean this
68
this.firstTimeInit = true;
69
if ($initActive.length) {
70
// Save up the initial hash to return to it later when going back in history
@@ -113,6 +117,7 @@ class Accordion extends Plugin {
113
117
}
114
118
115
119
this._events();
120
+ this.firstTimeInit = false;
116
121
122
123
/**
0 commit comments