mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
fix #599
This commit is contained in:
parent
ae4d38cae6
commit
19be67c914
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user