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

BUGFIX: fallback to the first tab when tab index is out of bounds #873

Merged
merged 1 commit into from
Sep 5, 2017

Conversation

dimaip
Copy link
Contributor

@dimaip dimaip commented Sep 5, 2017

Fixes #826

@dimaip dimaip added the Bug Label to mark the change as bugfix label Sep 5, 2017
@dimaip dimaip requested a review from skurfuerst September 5, 2017 06:14
Copy link
Member

@skurfuerst skurfuerst left a comment

Choose a reason for hiding this comment

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

nitpick

@@ -73,13 +73,20 @@ export default class Tabs extends PureComponent {
);
}

getActiveTab() {
Copy link
Member

Choose a reason for hiding this comment

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

I'd call this "activeTabIndex"; and also change the state property to "activeTabIndex" - is more clear, wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The problem with renaming state activeTab is that it has related prop activeTab, which is a part of component's API, and since we publish this package to npm and already version it, that would require a version bump... Frankly I'd just ignore it, but if you insist I can take care.

Copy link
Member

Choose a reason for hiding this comment

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

OK then we keep it as is. Fine ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Label to mark the change as bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants