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

activeIndex property on TabView doesn't work #26

Closed
koverg70 opened this issue Apr 24, 2017 · 1 comment
Closed

activeIndex property on TabView doesn't work #26

koverg70 opened this issue Apr 24, 2017 · 1 comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@koverg70
Copy link
Contributor

Unable to create a TabView where the activeIndex is not the first, because the component uses the value from its state and ignores the value it receives in props.

We should use the componentWillReceiveProps lifecycle method to copy the value from component props to state.

@koverg70
Copy link
Contributor Author

Sorry for the 3 commits. It is actually one commit. I should revert the previous two. In my fork repo it shows only one cimmit.

@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label May 5, 2017
@mertsincan mertsincan added this to the 1.0.0-alpha.2 milestone May 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants