-
Notifications
You must be signed in to change notification settings - Fork 161
feat: add selectableGroups option to group multi-select
#255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Adds a `selectableGroups` boolean flag which can be used to disallow selecting groups. This basically just skips over them when using up/down, but still renders when they are "selected" (by selecting all the children individually).
🦋 Changeset detectedLatest commit: e85b846 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Open in Stackblitz • @example/basic • @example/changesets commit: |
natemoo-re
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you for the PR!
|
@AdrianGonz97 are you able to take a look at this and let me know if it matches what you have in svelte's fork? the behaviour is basically that we render everything as before, but you can't select groups if if you select all the children of a group, it will show as selected. but you can't select it yourself |
|
i see a missing part actually in the svelte fork, they also render a different prefix depending on if the groups are selectable or not. i'll take a look at that 👍 |
dreyfus92
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
james, at first glance it looks good but, i just have a question. would it be necessary to add some tests for this?
|
Definitely We are missing quite a few tests so I might add them in a standalone PR first. I'll take a look |
Co-authored-by: Nate Moore <[email protected]>


Adds a
selectableGroupsboolean flag which can be used to disallow selecting groups.This basically just skips over them when using up/down, but still renders when they are "selected" (by selecting all the children individually).