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: filter values reset after selecting a column #5323

Closed
GuillaumeC opened this issue Nov 15, 2023 · 2 comments
Closed

DataTable: filter values reset after selecting a column #5323

GuillaumeC opened this issue Nov 15, 2023 · 2 comments
Assignees
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@GuillaumeC
Copy link

Describe the bug

We have a DataTable with column filters and multi select with checkbox.

If we set a value in filters, then we check a row, all filters are reset.

The bug is present in samples of PrimeReact documentation

Reproducer

https://codesandbox.io/s/2h75v7

PrimeReact version

10.0.9

React version

18.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

Firefox 119.0.1

Steps to reproduce the behavior

1 - Fill a filter, like Names with "James" value
2 - Check the checkbox of the first line of the table

--> Filter values will be reset

Expected behavior

The line is selected, and filters are always the same

@GuillaumeC GuillaumeC added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 15, 2023
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 15, 2023
@melloware melloware added this to the 10.0.10 milestone Nov 15, 2023
@melloware melloware added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Nov 15, 2023
@melloware melloware self-assigned this Nov 15, 2023
@melloware
Copy link
Member

I didn't test it but I was hoping this fix I just made for 10.0.10 is going to fix it: #5282

@cagataycivici cagataycivici modified the milestones: 10.1.0, 10.2.0 Nov 20, 2023
@melloware
Copy link
Member

Fixed in 10.1.0

@melloware melloware modified the milestones: 10.2.0, 10.1.0 Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

3 participants