Skip to content

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

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

Tab.js: do not remove fade class if there's no initial active pane#24871
Johann-S merged 1 commit intotwbs: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.

Copy link
Copy Markdown
Member

@Johann-S Johann-S left a comment

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants