Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow tabs to fade in if no initially active pane is present #13815

Merged
merged 2 commits into from
Jul 6, 2014

Conversation

hnrch02
Copy link
Collaborator

@hnrch02 hnrch02 commented Jun 13, 2014

I can see the use case, do we want this?

Demonstration can be found here.

/cc @mdo @fat

@hnrch02
Copy link
Collaborator Author

hnrch02 commented Jun 13, 2014

Ref: #13814

@boivie
Copy link

boivie commented Jun 14, 2014

I was just looking for this, so +1 from me!

@cvrebert cvrebert added this to the v3.3.0 milestone Jun 14, 2014
@hnrch02
Copy link
Collaborator Author

hnrch02 commented Jun 25, 2014

Rebased.

@@ -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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does that first length check actually improve perf that much?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not about perf, $active is empty when no tabs are shown, so the hasClass check would evaluate to false, preventing the feature this adds from working.

fat added a commit that referenced this pull request Jul 6, 2014
Allow tabs to fade in if no initially active pane is present
@fat fat merged commit 279c461 into twbs:master Jul 6, 2014
@mdo mdo modified the milestones: v4.0.0, v3.2.1 Jul 6, 2014
@cvrebert cvrebert mentioned this pull request Jul 6, 2014
@hnrch02 hnrch02 deleted the tabs-fade-not-active branch July 7, 2014 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants