primefaces / primefaces/primereact
DataTable: DataTable filters resilience
Nobody has claimed this yet.
- 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:
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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