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 OnValueChange #3324

Closed
bits1309 opened this issue Sep 15, 2022 · 1 comment
Closed

Datatable OnValueChange #3324

bits1309 opened this issue Sep 15, 2022 · 1 comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted

Comments

@bits1309
Copy link

Describe the bug

The onValueChange doesnt get called when we are filtering data using the global search box.
The same works fine if we filter individual columns.
Ideally, onValueChange should be called on all instances where filtering is happening because then we are not able to implement a few functionalities which rely on filtered data.

Reproducer

No response

PrimeReact version

8.5.0

React version

18.x

Language

ALL

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

  1. Add the below property to your component.
    onValueChange={filteredData => {console.log('filter changed', filteredData)}}

  2. try filtering the data from the individual filter. It properly logs the filtered data.

  3. Try filtering via global search box. It doesn't log the filtered data properly.

Expected behavior

No response

@bits1309 bits1309 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 15, 2022
@melloware melloware added Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Sep 15, 2022
@melloware
Copy link
Member

Duplicate of #1396

@melloware melloware marked this as a duplicate of #1396 Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted
Projects
None yet
Development

No branches or pull requests

2 participants