mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
Added correct handling of empty selection (first line)
This commit is contained in:
parent
3c37716dd2
commit
485503c54d
@ -54,7 +54,7 @@ export default (Base, {
|
||||
const { dataField, filter } = column;
|
||||
|
||||
const needClearFilters = !_.isDefined(filterVal) || filterVal === '' ||
|
||||
filterVal.length === 0; // || (filterVal.length === 1 && filterVal[0] === '');
|
||||
filterVal.length === 0 || (filterVal.length === 1 && filterVal[0] === '');
|
||||
|
||||
if (needClearFilters) {
|
||||
delete currFilters[dataField];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user