From aa1b89f1637155134ba20016d5701a3273ad7d37 Mon Sep 17 00:00:00 2001 From: bellord13 Date: Wed, 12 Jan 2022 21:04:57 +0300 Subject: [PATCH] fix --- assets/collapse/collapse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/collapse/collapse.js b/assets/collapse/collapse.js index 5d1ed26..ff7b05b 100644 --- a/assets/collapse/collapse.js +++ b/assets/collapse/collapse.js @@ -200,8 +200,8 @@ kit.PluginManager.register('collapse', function(module, exports, require) { const capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1) const scrollSize = `scroll${capitalizedDimension}` - this._queueCallback(complete, this._element, true) this._element.style[dimension] = `${this._element[scrollSize]}px` + this._queueCallback(complete, this._element, this._element.getAttribute('data-bs-animated') === 'true') } hide() { @@ -247,7 +247,7 @@ kit.PluginManager.register('collapse', function(module, exports, require) { this._element.style[dimension] = '' - this._queueCallback(complete, this._element, true) + this._queueCallback(complete, this._element, this._element.getAttribute('data-bs-animated') === 'true') } setTransitioning(isTransitioning) {