primeng icon indicating copy to clipboard operation
primeng copied to clipboard

p-table: "Date is after" filter does not exclude selected date

Open psarno opened this issue 1 year ago • 2 comments

Describe the bug

When using a component with filtering, when selecting "Date After" and choosing a date, that date remains in the table, despite the fact it should only show dates after that date.

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".

image

image

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

  1. Open the filter on any date column
  2. Select "Date is After" as the filter type
  3. Enter a date that is displayed in the grid
  4. 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.

psarno avatar Jan 19 '24 04:01 psarno

I think I have covered this bug in this PR: https://github.com/primefaces/primeng/pull/15343

nbrown-ScottLogic avatar Apr 26 '24 08:04 nbrown-ScottLogic

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!

github-actions[bot] avatar Aug 25 '24 01:08 github-actions[bot]

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!

github-actions[bot] avatar Sep 01 '24 01:09 github-actions[bot]