Commit 279c4615 authored by Jacob's avatar Jacob
Browse files

Merge pull request #13815 from hnrch02/tabs-fade-not-active

Allow tabs to fade in if no initially active pane is present
parents 0a8845c3 282f8fc0
Showing with 107 additions and 6 deletions
+107 -6
......@@ -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) :
......
This diff is collapsed.
Supports Markdown
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