AllenFang / react-bootstrap-table

A Bootstrap table built with React.js
https://allenfang.github.io/react-bootstrap-table/
MIT License
2.24k stars 782 forks source link

Less Than (<) is not properly working on DateFilter (Works like Less than or equal to) #2032

Open FahimAskar opened 5 years ago

FahimAskar commented 5 years ago

Hello!! While select < (less than) in Date Filter , it will working as <= (less than or equal to) not as < (less than). Could you resolve it properly? Since it should not affect other type of numberComparators such as '=', '>', '>=','<=', '!='.

I want functionality which should exactly filters the records which are LESS THAN (<) the given input date.

Also while remove any comparator in Date Filter it is also not working. Kindly solve that too.

Not Working: filter={{ type: 'DateFilter', numberComparators: ['=', '>', '>=','<=', '!='] }}

Working: filter={{ type: 'NumberFilter', numberComparators: ['=', '>', '>=','<=', '!='] }}