primereact icon indicating copy to clipboard operation
primereact copied to clipboard

Datatable: filter method not working properly with filterDisplay set to 'row'

Open xAl3xFx opened this issue 3 years ago • 3 comments

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

xAl3xFx avatar May 17 '22 16:05 xAl3xFx

Hello, are you planning to fix this issue any soon? I am currently using PrimeReact v. 8.0.1.

xAl3xFx avatar Jun 09 '22 14:06 xAl3xFx

That is up to PrimeTek. If you need immediate support or resolution I suggestion PrimeReact PRO support.

melloware avatar Jun 09 '22 14:06 melloware

I am having the same problem. Hope to get it fixed soon.

XdertY avatar Jul 05 '22 13:07 XdertY

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

melloware avatar Oct 08 '22 12:10 melloware

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!

github-actions[bot] avatar Oct 04 '23 01:10 github-actions[bot]

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!

github-actions[bot] avatar Oct 12 '23 00:10 github-actions[bot]