primereact
primereact copied to clipboard
PrimeReact TreeSelect feature request
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".
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.
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
Nope. Probably someone needs to financially sponsor this fix.