Skip to content

Show bottom-level nodes in the pill list by traversing the tree on checkbox selection #570

Answered by mrchief
gandhis1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! That's one of the design decisions we debated over while building this component. It has been asked in the past and also the flip case where you want the parent to act as select/deselcet all for children. This can vary based on use case to use case so the component tries to be flexible and provides ways to accomplish all possible outcomes without making those decisions itself. Some of the older discussions can be seen here #481 (comment) and here #244

What you are looking for is to use mode=hierarchical. Now selecting 50 states individually may not be a good UX so what you'd need to do is wrap the component in an HoC that sets each children's selected=true|false when the parent is to…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gandhis1
Comment options

@mrchief
Comment options

Answer selected by gandhis1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #568 on June 18, 2022 21:25.