This commit is contained in:
2022-01-12 21:07:52 +03:00
+2 -2
View File
@@ -200,8 +200,8 @@ kit.PluginManager.register('collapse', function(module, exports, require) {
const capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1) const capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1)
const scrollSize = `scroll${capitalizedDimension}` const scrollSize = `scroll${capitalizedDimension}`
this._queueCallback(complete, this._element, true)
this._element.style[dimension] = `${this._element[scrollSize]}px` this._element.style[dimension] = `${this._element[scrollSize]}px`
this._queueCallback(complete, this._element, this._element.getAttribute('data-bs-animated') === 'true')
} }
hide() { hide() {
@@ -247,7 +247,7 @@ kit.PluginManager.register('collapse', function(module, exports, require) {
this._element.style[dimension] = '' this._element.style[dimension] = ''
this._queueCallback(complete, this._element, true) this._queueCallback(complete, this._element, this._element.getAttribute('data-bs-animated') === 'true')
} }
setTransitioning(isTransitioning) { setTransitioning(isTransitioning) {