We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfb2592 commit 5cc7882Copy full SHA for 5cc7882
packages/react-bootstrap-table2/src/contexts/index.js
@@ -85,6 +85,12 @@ const withContext = Base =>
85
}
86
87
UNSAFE_componentWillReceiveProps(nextProps) {
88
+ if (nextProps.columns.filter(col => col.sort).length > 0 && !this.SortContext) {
89
+ this.SortContext = createSortContext(
90
+ dataOperator, this.isRemoteSort, this.handleRemoteSortChange);
91
+ } else {
92
+ this.SortContext = null;
93
+ }
94
if (!nextProps.pagination && this.props.pagination) {
95
this.PaginationContext = null;
96
0 commit comments