TreeFilter: filter + select an option state issue

UI Components for React
Post Reply
gkolev
Posts: 1
Joined: 21 Nov 2021, 18:52

08 Dec 2022, 18:01

Hi all,

I'm trying to figure out how to use TreeFilter + Checkbox selection + filtering of the tree.
It all works fine until I try to filter the tree for a very specific (unique) value and select it.
Instead of partially selecting all the parents, all the tree nodes are completely selected, that makes the filtering unusable.
When clearing up the filter menu the tree selection gets broken - not just the selected node is displayed as "checked", but all the parents, that have to be actually only "partialChecked".

I will post the issue in the primereact github repo, but wanted to be sure, that I'm not doing something wrong (or there is some hidden property I'm missing).
Here is the bug reproducement using the latest primereact version (the example builds on top of the primereact example from their page):

Bug demo:
https://codesandbox.io/s/funny-mountain ... ectDemo.js

Expected: to have only one option fully selected.
Actual: the filtered tree nodes are fully selected.

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

12 Dec 2022, 15:08

PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests