Skip to content

Commit 45610a0

Browse files
MartijnCuppensJohann-S
authored andcommitted
fix tab fade out (#27533)
1 parent ffc8d50 commit 45610a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/src/tab.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ class Tab {
162162
const transitionDuration = Util.getTransitionDurationFromElement(active)
163163

164164
$(active)
165+
.removeClass(ClassName.SHOW)
165166
.one(Util.TRANSITION_END, complete)
166167
.emulateTransitionEnd(transitionDuration)
167168
} else {
@@ -171,7 +172,7 @@ class Tab {
171172

172173
_transitionComplete(element, active, callback) {
173174
if (active) {
174-
$(active).removeClass(`${ClassName.SHOW} ${ClassName.ACTIVE}`)
175+
$(active).removeClass(ClassName.ACTIVE)
175176

176177
const dropdownChild = $(active.parentNode).find(
177178
Selector.DROPDOWN_ACTIVE_CHILD

0 commit comments

Comments
 (0)