DataTable : filterDisplay="menu" doesn't work
Describe the bug
When I setup my table with filterDisplay="menu" and I do a research, it doesn't work and show me this type of errors:
I don't have any problem with the row configuration and I also tried this and it doesn't work https://stackblitz.com/run?file=src%2FApp.js
Reproducer
https://stackblitz.com/run?file=src%2FApp.js
PrimeReact version
9.5.0
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
Chromium 114
Steps to reproduce the behavior
- Click on the filter icon
- Try to research something
- Crash happens
Expected behavior
I wanted to research within my table instead of getting an error
your stackblitz link is not working for me?
Oups, I'm sorry, here is a new link for this: https://react-ic9wzf.stackblitz.io/
You can try to fill the filter at the column "name", I took the code from the documentation and changed filterDisplay="row" to filterDisplay="menu"
Can you paste the raw link and not the running app. I want to see your code.
You can't just change menu to row the filters are different.
Row: https://stackblitz.com/edit/react-hna34f?file=src%2FApp.js
Menu: https://stackblitz.com/edit/react-izvac7?file=src%2FApp.js
Isn't it possible to use the same filters as for row appareance at all? https://stackblitz.com/edit/react-ic9wzf?file=src%2FApp.js
I do that here: https://github.com/melloware/quarkus-monorepo/blob/5e94c8d00549bfca0506f9f2ab61e476d83a6646/src/main/webui/src/CrudPage.tsx#L55-L71
You can see my code in action I toggle between row and menu filters.
Demo: https://github.com/melloware/quarkus-monorepo
I let you toggle back and forth between ROW and MENU filters.
Thank you a lot for your answer! Have a good day