Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
groteworld committed Apr 17, 2023
1 parent 853ba8e commit 49cfd3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const ScrollableTabView = createReactClass({
this.updateSceneKeys({ page: currentPage, children: props.children, });
}

if (this.props.page >= 0 && this.props.page !== currentPage) {
if (this.props.page !== prevProps.page && this.props.page >= 0 && this.props.page !== currentPage) {
this.goToPage(this.props.page);
}
},
Expand Down

0 comments on commit 49cfd3b

Please sign in to comment.