AllenFang / AllenFang/react-bootstrap-table

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

Aperta
#2,032 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
2.2k
Fork
761
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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: ['=', '>', '>=','<=', '!=']
}}

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.