Skip to content

fix(tab): do not auto activate tabs more than once#1025

Merged
y0hami merged 1 commit intofomantic:developfrom
prudho:fix-1014
Sep 19, 2019
Merged

fix(tab): do not auto activate tabs more than once#1025
y0hami merged 1 commit intofomantic:developfrom
prudho:fix-1014

Conversation

@prudho
Copy link
Copy Markdown
Contributor

@prudho prudho commented Sep 19, 2019

Description

My previous PR #977 introduced auto activation for no specified tab. Except that each time you call the .tab() method for one of thoses tabs, it checks again and change the active one...

This fix just consist of checking if tabs were initializes before, so it doesn't have to recheck again...

Testcase

JSFiddle
JSFiddle (Fixed)

Closes

#1014

@prudho prudho added type/bug Any issue which is a bug or PR which fixes a bug lang/javascript Anything involving JavaScript state/awaiting-reviews Pull requests which are waiting for reviews labels Sep 19, 2019
@prudho prudho added this to the 2.8.0 milestone Sep 19, 2019
Copy link
Copy Markdown
Member

@lubber-de lubber-de left a comment

Choose a reason for hiding this comment

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

LGTM, i added another jsfiddle to the description with the current fix

Copy link
Copy Markdown
Contributor

@exoego exoego left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@y0hami y0hami left a comment

Choose a reason for hiding this comment

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

LGTM

@y0hami y0hami removed the state/awaiting-reviews Pull requests which are waiting for reviews label Sep 19, 2019
@y0hami y0hami changed the title [Tab] Do not auto activate tabs more than once fix(tab): do not auto activate tabs more than once Sep 19, 2019
@y0hami y0hami merged commit 7a9a80c into fomantic:develop Sep 19, 2019
@prudho prudho deleted the fix-1014 branch May 20, 2021 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang/javascript Anything involving JavaScript type/bug Any issue which is a bug or PR which fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants