Datatable: filter method not working properly with filterDisplay set to 'row'
Describe the bug
Hello,
I have found a bug relating the DataTable component. When I try to use dtRef.filter(value, columnName, matchMode) for more than one column (using filterDisplay = 'row') it only filters the last column. Here is an example. You can see that I call the dtRef.current.filter method twice but only the second filter is applied. By chaning the filterDisplay to menu fixes the problem but I am using row filterDisplay.
Thank you for reading this.
Reproducer
https://codesandbox.io/s/confident-danny-5ymi5c?file=/src/demo/DataTableDemo.tsx:10152-10165
PrimeReact version
7.2.1
React version
17.x
Language
ALL
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
Hello, are you planning to fix this issue any soon? I am currently using PrimeReact v. 8.0.1.
That is up to PrimeTek. If you need immediate support or resolution I suggestion PrimeReact PRO support.
I am having the same problem. Hope to get it fixed soon.
in 8.6.1 it looks like it works in Menu Mode but not in Row Mode.
Filter Mode Row : https://codesandbox.io/s/white-http-uwoofe?file=/src/demo/DataTableDemo.tsx
Filter Mode Menu: https://codesandbox.io/s/silly-kowalevski-59cd2l?file=/src/demo/DataTableDemo.tsx
This issue has been automatically marked as stale. If this issue is still affecting you with the latest version, please leave any comment, and we will keep it open. We are sorry that we have not been able to prioritize it yet. If you have any new additional information, please include it with your comment!
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you for your understanding!