mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-08-12 04:00:16 +00:00
Added correct handling of empty selection (first line)
This commit is contained in:
+1
-1
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user