Closed jehupacheco closed 4 years ago
Local filter does not work properly on TreeTable when filtering by a repeated value on children nodes (although keys are unique)
This is the data passed to node:
[ { "key": "applications", "data": { "label": "Applications", "size": '100MB', }, "children": [ { "key": "applications-finder", "data": { "label": "Finder", "size": "70MB", } }, { "key": "applications-photobooth", "data": { "label": "PhotoBooth", "size": "30MB", } } ], }, { "key": "pictures", "data": { "label": "Pictures", "size": "3MB", }, "children": [ { "key": "pictures-finder", "data": { "label": "Finder", "size": "2MB", } }, { "key": "pictures-lena", "data": { "label": "Lena", "size": "1MB", } } ], } ]
When filtering by a non-repeated value, everything works as expected
However, when filtering by a value that exists in more that one node, the table shows all the value (despite matching or not the filter)
Here is a fiddle that replicates the issue https://jsfiddle.net/w5rq4dej/21/
@mertsincan Wdyt?
May be fixed by;
https://github.com/primefaces/primevue/issues/424
Local filter does not work properly on TreeTable when filtering by a repeated value on children nodes (although keys are unique)
This is the data passed to node:
When filtering by a non-repeated value, everything works as expected
However, when filtering by a value that exists in more that one node, the table shows all the value (despite matching or not the filter)
Here is a fiddle that replicates the issue https://jsfiddle.net/w5rq4dej/21/