mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-14 17:44:15 +02:00
fix tab fade out (#27533)
This commit is contained in:
committed by
Johann-S
parent
ffc8d507c7
commit
45610a0f39
@@ -162,6 +162,7 @@ class Tab {
|
|||||||
const transitionDuration = Util.getTransitionDurationFromElement(active)
|
const transitionDuration = Util.getTransitionDurationFromElement(active)
|
||||||
|
|
||||||
$(active)
|
$(active)
|
||||||
|
.removeClass(ClassName.SHOW)
|
||||||
.one(Util.TRANSITION_END, complete)
|
.one(Util.TRANSITION_END, complete)
|
||||||
.emulateTransitionEnd(transitionDuration)
|
.emulateTransitionEnd(transitionDuration)
|
||||||
} else {
|
} else {
|
||||||
@@ -171,7 +172,7 @@ class Tab {
|
|||||||
|
|
||||||
_transitionComplete(element, active, callback) {
|
_transitionComplete(element, active, callback) {
|
||||||
if (active) {
|
if (active) {
|
||||||
$(active).removeClass(`${ClassName.SHOW} ${ClassName.ACTIVE}`)
|
$(active).removeClass(ClassName.ACTIVE)
|
||||||
|
|
||||||
const dropdownChild = $(active.parentNode).find(
|
const dropdownChild = $(active.parentNode).find(
|
||||||
Selector.DROPDOWN_ACTIVE_CHILD
|
Selector.DROPDOWN_ACTIVE_CHILD
|
||||||
|
Reference in New Issue
Block a user