mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-22 07:20:23 +00:00
Allow tabs to fade in if no initially active pane is present; fixes #13814
This commit is contained in:
parent
4abb095783
commit
634ea59a25
1 changed files with 2 additions and 2 deletions
|
|
@ -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) :
|
||||
|
|
|
|||
Loading…
Reference in a new issue