baseframe-js
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -120,2 +120,5 @@ import $ from 'cash-dom'; | ||
const activeAlreadyOpen = s.$activeItem.hasClass(cssOpen); | ||
$itemsToClose.each(function () { | ||
$(this).css({ height: this.scrollHeight }); | ||
}); | ||
s.#transition(() => { | ||
@@ -136,11 +139,6 @@ s.toggling = true; | ||
}); | ||
$itemsToClose.each(function () { | ||
$(this).css({ height: this.scrollHeight }); | ||
}); | ||
setTimeout(() => { | ||
$itemsToClose | ||
.removeClass(cssOpen) | ||
.addClass(`${cssToggling} ${cssClosing}`) | ||
.css({ height: 0 }); | ||
}, 0); | ||
$itemsToClose | ||
.removeClass(cssOpen) | ||
.addClass(`${cssToggling} ${cssClosing}`) | ||
.css({ height: 0 }); | ||
if (!activeAlreadyOpen) { | ||
@@ -169,3 +167,3 @@ s.$activeItem | ||
s.moveToTopOnOpen(); | ||
}); | ||
}, s.params.toggleDuration); | ||
} | ||
@@ -172,0 +170,0 @@ } |
{ | ||
"name": "baseframe-js", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "A suite of useful Javascript plugins and functions to help with Front-end Development on websites", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
469547
6593