I'm adding a filtering function to a date column of datatable. The filter is initialized this way:
createdDate: { operator: FilterOperator.AND, constraints: [{ value: null, matchMode: FilterMatchMode.DATE_IS }] },
The small filter window is working properly with only 1 search rule, but if I add another rule then it starts to behave weirdly:
- when I click on the second date input field, I get the calendar popup for date selection, but my selection is copied to the first date input field too (so they both will have the same date input)
- if I run the filtering function, and then I click back to filter icon to review the filter, the second date input field is empty
Code: Select all
{
"first": 0,
"rows": 50,
"sortField": null,
"sortOrder": null,
"multiSortMeta": [],
"filters": {
"createdDate": {
"operator": "and",
"constraints": [
{
"value": "2023-06-21T22:00:00.000Z",
"matchMode": "dateIsNot"
},
{
"value": null,
"matchMode": "dateIsNot"
}
]
}
}
}
Thank you,
Max