Skip to content

Commit 7e98f0d

Browse files
committed
fix conflicts
2 parents 3866ea6 + 24e5b66 commit 7e98f0d

9 files changed

+52
-5
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<a name="v3.3.3"></a>
2+
# [v3.3.3](https://github.com/AllenFang/react-bootstrap-table/compare/v3.3.2...v3.3.3) (2017-05-08)
3+
## Bug fixes
4+
* Avoid to throw error when `onfocus` function is not implement on custom cell editor([7104c6b](https://github.com/AllenFang/react-bootstrap-table/commit/7104c6b4f6611b9040d8de18649b5daded89cac2))
5+
* Fixed press ESC to leave the cell editing broken since from `v3.3.1`([283508](https://github.com/AllenFang/react-bootstrap-table/commit/28350864ecf6dace5d00f55bd4dbfaff8ddaacbd))
6+
17
<a name="v3.3.2"></a>
28
# [v3.3.2](https://github.com/AllenFang/react-bootstrap-table/compare/v3.3.1...v3.3.2) (2017-05-07)
39
## Bug fixes

dist/react-bootstrap-table.js

+12-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-bootstrap-table.js.map

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-bootstrap-table.min.js

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/js/cell-edit/cell-edit-hook-table.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function onAfterSaveCell(row, cellName, cellValue) {
3030
rowStr += prop + ': ' + row[prop] + '\n';
3131
}
3232

33-
alert('Thw whole row :\n' + rowStr);
33+
alert('The whole row :\n' + rowStr);
3434
}
3535

3636
function onBeforeSaveCell(row, cellName, cellValue) {

examples/js/complex/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function onSelectAll(isSelected) {
3838

3939
function onAfterSaveCell(row, cellName, cellValue) {
4040
console.log(`Save cell ${cellName} with value ${cellValue}`);
41-
console.log('Thw whole row :');
41+
console.log('The whole row :');
4242
console.log(row);
4343
}
4444

src/BootstrapTable.js

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

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

src/TableBody.js

+2
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ class TableBody extends Component {
405405
if (result !== Const.AWAIT_BEFORE_CELL_EDIT) {
406406
this.setState({ currEditCell: null });
407407
}
408+
} else {
409+
this.setState({ currEditCell: null });
408410
}
409411
}
410412

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)