primefaces / primefaces/primereact

DataTable: DataTable filters resilience

Open
#8,109 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Needs Triage
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Not defining default filters triggers an error on column's filter change:

Image

Reproducer

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

System Information
primereact: 10.9.1
Steps to reproduce the behavior

No response

Expected behavior

DataTable should not triggers an error if the filters init value is not defined. Default value is a technical aspect that should be handled by the component.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked StackBlitz reproducer at src/App.jsx using PrimeReact 10.9.1, then trace the DataTable column-filter change path in the repository. Confirm the failure when the filters initial value is undefined and verify that changing a column filter no longer raises an error without default filters.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.