mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-08-11 19:50:17 +00:00
fix #599
This commit is contained in:
@@ -54,6 +54,16 @@ const withContext = Base =>
|
||||
}
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
if (!nextProps.pagination && this.props.pagination) {
|
||||
this.PaginationContext = null;
|
||||
}
|
||||
if (nextProps.pagination && !this.props.pagination) {
|
||||
this.PaginationContext = nextProps.pagination.createContext(
|
||||
this.isRemotePagination, this.handleRemotePageChange);
|
||||
}
|
||||
}
|
||||
|
||||
renderBase() {
|
||||
return (
|
||||
rootProps,
|
||||
|
||||
Reference in New Issue
Block a user