Skip to content

Commit

Permalink
Refactor #393
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed May 9, 2018
1 parent b59e18e commit f8d3977
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/tabview/TabView.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ export class TabView extends Component {
event.preventDefault();
}

componentWillReceiveProps(nextState) {
if(nextState.activeIndex !== this.state.activeIndex) {
componentWillReceiveProps(nextProps) {
if(nextProps.activeIndex !== this.state.activeIndex) {
this.setState({
activeIndex: nextState.activeIndex
activeIndex: nextProps.activeIndex
});
}
}
Expand Down

0 comments on commit f8d3977

Please sign in to comment.