Skip to content

Commit 5cf6e17

Browse files
author
Gabriel da Gama
committed
Changed accordion transition from forceDeactivate to deactivate, fixing bug transition
1 parent 0714971 commit 5cf6e17

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/web/mage/accordion.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@ define([
8383
*/
8484
_closeOthers: function () {
8585
if (!this.options.multipleCollapsible) {
86-
this._super();
86+
var self = this;
87+
$.each(this.collapsibles, function () {
88+
$(this).on('beforeOpen', function () {
89+
self.collapsibles.not(this).collapsible('deactivate');
90+
});
91+
});
8792
}
8893
$.each(this.collapsibles, function () {
8994
$(this).on('beforeOpen', function () {

0 commit comments

Comments
 (0)