This commit is contained in:
AllenFang
2019-08-19 21:28:22 +08:00
parent 43b5eeb74f
commit 70827eecd6
+7
View File
@@ -91,6 +91,13 @@ const withContext = Base =>
this.PaginationContext = nextProps.pagination.createContext(
this.isRemotePagination, this.handleRemotePageChange);
}
if (!nextProps.cellEdit && this.props.cellEdit) {
this.CellEditContext = null;
}
if (nextProps.cellEdit && !this.props.cellEdit) {
this.CellEditContext = nextProps.cellEdit.createContext(
_, dataOperator, this.isRemoteCellEdit, this.handleRemoteCellChange);
}
}
renderBase() {