Skip to content

Commit

Permalink
Merge pull request #13815 from hnrch02/tabs-fade-not-active
Browse files Browse the repository at this point in the history
Allow tabs to fade in if no initially active pane is present
  • Loading branch information
fat committed Jul 6, 2014
2 parents 0a8845c + 282f8fc commit 279c461
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 6 deletions.
4 changes: 2 additions & 2 deletions js/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -79,7 +79,7 @@
callback && callback()
}

transition ?
$active.length && transition ?
$active
.one('bsTransitionEnd', next)
.emulateTransitionEnd(150) :
Expand Down
Loading

0 comments on commit 279c461

Please sign in to comment.