primeng
primeng copied to clipboard
p-table: "Date is after" filter does not exclude selected date
Describe the bug
When using a
This can be seen even in the PrimeNG documentation example. In this case, "Date Is After" "09/12/2015" should not include that date in the result list, but it remains.
You have to select "Date is After" "09/13/2015" (the day after) if you actually want to exclude "09/12/2015".
Environment
PrimeNG 17.3.3 Angular 17.0.9
Reproducer
Can be reproduced on PrimeNG's documentation page for Table
Angular version
17.0.9
PrimeNG version
17.3.3
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.11.0
Browser(s)
No response
Steps to reproduce the behavior
- Open the filter on any date column
- Select "Date is After" as the filter type
- Enter a date that is displayed in the grid
- Click "Apply"
Expected behavior
The date selected in the date field should not be included in the result set, as it is not "after" itself.
I think I have covered this bug in this PR: https://github.com/primefaces/primeng/pull/15343
This issue has been automatically marked as stale. If this issue is still affecting you with the latest version, please leave any comment, and we will keep it open. We are sorry that we have not been able to prioritize it yet. If you have any new additional information, please include it with your comment!
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you for your understanding!