We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40e8115 commit 930def1Copy full SHA for 930def1
index.js
@@ -37,6 +37,12 @@ var ScrollableTabView = React.createClass({
37
};
38
},
39
40
+ componentWillReceiveProps(props) {
41
+ if (props.initialPage !== this.state.currentPage) {
42
+ this.goToPage(props.initialPage);
43
+ }
44
+ },
45
+
46
goToPage(pageNumber) {
47
this.props.onChangeTab && this.props.onChangeTab({
48
i: pageNumber, ref: this.props.children[pageNumber]
0 commit comments