Skip to content

Tab.js: do not remove fade class if there's no initial active pane - #24871

Merged
Johann-S merged 1 commit into
twbs:v4-devfrom
alekitto:v4-dev
Nov 26, 2017
Merged

Johann-S merged 1 commit into
twbs:v4-devfrom
alekitto:v4-dev

Conversation

@alekitto

Copy link
Copy Markdown
Contributor

A small issue was discovered while rewriting tab js without jQuery for #24094 (discussion here):
The component does not trigger the fade effect if no active pane is present initially, subsequently removing the fade class from all the tab elements.

@XhmikosR
XhmikosR requested a review from Johann-S November 25, 2017 17:16
@XhmikosR XhmikosR added js JavaScript or TypeScript sources and plugins v4 v4, the frozen docs on gh-pages labels Nov 25, 2017

@Johann-S Johann-S left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM after you made that change 👍

Comment thread js/src/tab.js Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should be changed to :

$(active).removeClass(`${ClassName.SHOW} ${ClassName.ACTIVE}`)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done 👍

@Johann-S
Johann-S merged commit 80d4a51 into twbs:v4-dev Nov 26, 2017
@mdo mdo mentioned this pull request Nov 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

js JavaScript or TypeScript sources and plugins v4 v4, the frozen docs on gh-pages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants