Skip to content

Commit 24e5b66

Browse files
committed
fix #1302
1 parent 4c1cf0a commit 24e5b66

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/BootstrapTable.js

+8
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,14 @@ class BootstrapTable extends Component {
243243
sizePerPage,
244244
reset: false
245245
});
246+
247+
if (this.store.isSearching && options.afterSearch) {
248+
options.afterSearch(this.store.searchText, this.store.getDataIgnoringPagination());
249+
}
250+
251+
if (this.store.isFiltering && options.afterColumnFilter) {
252+
options.afterColumnFilter(this.store.filterObj, this.store.getDataIgnoringPagination());
253+
}
246254
}
247255

248256
// If setting the expanded rows is being handled externally

src/store/TableDataStore.js

+8
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ export class TableDataStore {
4141
this.selected = [];
4242
}
4343

44+
isSearching() {
45+
return this.searchText !== null;
46+
}
47+
48+
isFiltering() {
49+
return this.filterObj !== null;
50+
}
51+
4452
setData(data) {
4553
this.data = data;
4654
if (this.remote) {

0 commit comments

Comments
 (0)