aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Cuppens <[email protected]>2018-10-29 09:54:45 +0100
committerJohann-S <[email protected]>2018-10-29 09:54:45 +0100
commit45610a0f39dc6bd9dc97f118ce46f98632ade8d4 (patch)
tree3e69ac269d5a1bc29ed080e60f3458fe9c2b9991
parentffc8d507c713ee6e93e04fb61c2e6df3e1020007 (diff)
downloadbootstrap-45610a0f39dc6bd9dc97f118ce46f98632ade8d4.tar.xz
bootstrap-45610a0f39dc6bd9dc97f118ce46f98632ade8d4.zip
fix tab fade out (#27533)
-rw-r--r--js/src/tab.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/tab.js b/js/src/tab.js
index 4acb6f7f4..af296f74f 100644
--- a/js/src/tab.js
+++ b/js/src/tab.js
@@ -162,6 +162,7 @@ class Tab {
const transitionDuration = Util.getTransitionDurationFromElement(active)
$(active)
+ .removeClass(ClassName.SHOW)
.one(Util.TRANSITION_END, complete)
.emulateTransitionEnd(transitionDuration)
} else {
@@ -171,7 +172,7 @@ class Tab {
_transitionComplete(element, active, callback) {
if (active) {
- $(active).removeClass(`${ClassName.SHOW} ${ClassName.ACTIVE}`)
+ $(active).removeClass(ClassName.ACTIVE)
const dropdownChild = $(active.parentNode).find(
Selector.DROPDOWN_ACTIVE_CHILD