Commit 634ea59a authored by Heinrich Fenkart's avatar Heinrich Fenkart

Allow tabs to fade in if no initially active pane is present; fixes #13814

parent 4abb0957
......@@ -55,7 +55,7 @@
var $active = container.find('> .active')
var transition = callback
&& $.support.transition
&& $active.hasClass('fade')
&& (($active.length && $active.hasClass('fade')) || !!container.find('> .fade').length)
function next() {
$active
......@@ -79,7 +79,7 @@
callback && callback()
}
transition ?
$active.length && transition ?
$active
.one('bsTransitionEnd', next)
.emulateTransitionEnd(150) :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment