primereact icon indicating copy to clipboard operation
primereact copied to clipboard

DataTable Dropdown Filter: Value is not getting updated upon selection

Open Amit-ga opened this issue 1 year ago • 4 comments

Describe the bug

When adding a filter to a column in the form of a dropdown list, the user selects the required value from the dropdown list and the value of the dropdown box is not being updated with the chosen value (in my case, it remains the value of the Placeholder).

Reproducer

https://stackblitz.com/edit/7mvfnj?file=src%2FApp.jsx

PrimeReact version

10.6.5

React version

17.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

chrome, edge

Steps to reproduce the behavior

  1. Go to 'status' column.
  2. Select any status.
  3. watch how the placeholder remains, and the value isn't being updated.

Expected behavior

The selected value should be updated upon selection so the users arn't confused. They think they have not selected any value when they actually did select it, it just wont appear so in the dropdown list.

Amit-ga avatar May 12 '24 15:05 Amit-ga

Your stackblitz link is not working. Can you check it ?

Rekl0w avatar May 13 '24 06:05 Rekl0w

Please fork the Stackblitz project and create a case demonstrating your bug report. This issue will be closed if no activities in 20 days.

github-actions[bot] avatar May 13 '24 11:05 github-actions[bot]

Please fork the Stackblitz project and create a case demonstrating your bug report. This issue will be closed if no activities in 20 days.

https://stackblitz.com/edit/7mvfnj?file=src%2FApp.jsx

Please let me know if this is okay. Thanks

Amit-ga avatar May 14 '24 08:05 Amit-ga

I think this is releated with this issue #6617 somehow. Both issues has same behavior that it selects it but not displaying.

Rekl0w avatar May 14 '24 09:05 Rekl0w