primereact
primereact copied to clipboard
Datatable: globalFilter option triggered with old value
Reproducer
https://codesandbox.io/s/wonderful-glade-k33wq6
PrimeReact version
8.1.1
React version
18.x
Language
TypeScript
Build / Runtime
Preact
Browser(s)
No response
Steps to reproduce the behavior
- Create DataTalbe
- Set golbalFilter prop
- Create a html input elemen
- Create a string react state
- set html input value and set change event to set react state
- watch onFilter,onValueChange event from prime DataTable
Expected behavior
No response
Hi @omansak,
I tried many things but unfortunately, I couldn't replicate this issue. Could you please attach a sample codesandbox link for us to replicate? Also, could you please try the latest primereact version?
Best Regards,
Will close for now and re-open if they provide a reproducer
I cannot share any sample or check again , sorry. Probably it has fixed in newer version. If i get again i will re-open.
Thanks.
@omansak No worries ;) Thanks a lot for your update!
Sorry for the delayed response!
I have this problem also:
a. onfilter is triggered with an old value
b. new problem, onfilter is not triggered when I erase the value on the searchbox
Here is the codesandbox link to reproduce, just type in search and view the console:
https://codesandbox.io/s/wonderful-glade-k33wq6
Hi, Just wanted to add, this two problems started in v8 (8.0.0 to 8.3.0), it works as intended in versions of Primereact v7 (7.0.0 to 7.2.1)
any update ? we need really fix this bug ?
If you need immediate response for this bug you probably either need PRO support or to offer a patch PR.
Did anyone find a workaround yet while there is no official fix?
This replicates the issue and I am fixing it: https://codesandbox.io/s/exciting-northcutt-7or5sf?file=/src/demo/DataTableFilterDemo.tsx
@melloware thank you dude, your great