primefaces / primereact

The Most Complete React UI Component Library
https://primereact.org
MIT License
6.59k stars 998 forks source link

PrimeReact TreeSelect feature request #6326

Open rdyava opened 6 months ago

rdyava commented 6 months ago

Discussed in https://github.com/orgs/primefaces/discussions/1298

Originally posted by **rdyava** February 26, 2024 Hello all, I am using the TreeSelect component and was wondering if there is a way to alter the behavior of the checkbox selection mode. Currently when there is a single child node of a parent node, with the checkbox selection mode enabled and selecting the child, it also checks the parent node as well. Is there a way to make it so that for this sort of use case, the parent node is not selected? For example, in the example in the documentation, selecting "Invoices.txt" also selects "Home", I would need "Home" to be a partially selected value in this case and not showing as a selection with "Invoices.txt". ![image](https://github.com/primefaces/community/assets/47518433/c3019b80-a732-41d8-a33a-d7fa7f7a3f77)

The propogateSelectionUp and propogateSelectionDown props from the standard Tree component which modify the checkbox selection behavior are not present in the TreeSelect component. For my use case which I defined in the linked discussion, I would like these props to be made available in the TreeSelect component if possible.

eguanOX commented 1 month ago

Has there been any update on this issue? I'm also running into this problem, and would like to be able to access the propogateSelectionDown and propogateSelectionUp props in TreeSelect. I also noticed that in the Angular version of TreeSelect (https://primeng.org/treeselect#api.treeselect.props.propagateSelectionDown), these props exist, so would be nice to have the same props here if possible

melloware commented 1 month ago

Nope. Probably someone needs to financially sponsor this fix.