Skip to content

Commit 49cfd3b

Browse files
committed
1 parent 853ba8e commit 49cfd3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const ScrollableTabView = createReactClass({
124124
this.updateSceneKeys({ page: currentPage, children: props.children, });
125125
}
126126

127-
if (this.props.page >= 0 && this.props.page !== currentPage) {
127+
if (this.props.page !== prevProps.page && this.props.page >= 0 && this.props.page !== currentPage) {
128128
this.goToPage(this.props.page);
129129
}
130130
},

0 commit comments

Comments
 (0)