Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTable Dropdown Filter: Value is not getting updated upon selection #6613

Open
Amit-ga opened this issue May 12, 2024 · 4 comments
Open
Labels
Type: Bug Issue contains a defect related to a specific component.

Comments

@Amit-ga
Copy link

Amit-ga commented May 12, 2024

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 Amit-ga added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 12, 2024
@Rekl0w
Copy link
Contributor

Rekl0w commented May 13, 2024

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

@melloware melloware added Status: Needs Reproducer Issue needs a runnable reproducer and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels May 13, 2024
Copy link

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

@Amit-ga
Copy link
Author

Amit-ga commented May 14, 2024

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

@Rekl0w
Copy link
Contributor

Rekl0w commented May 14, 2024

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

@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Reproducer Issue needs a runnable reproducer labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

3 participants