Skip to content
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

[CheckboxGroup] Handling of Root toggle when there are disabled items in List #729

Open
colangeloproductions opened this issue Oct 9, 2024 · 0 comments
Labels
bug 🐛 Something doesn't work

Comments

@colangeloproductions
Copy link

colangeloproductions commented Oct 9, 2024

Steps to reproduce

Link to live example: (required)
https://master--base-ui.netlify.app/components/react-checkbox-group/#parent-checkbox

Steps:

  1. Using the latest version 1.0.0-alpha.3
  2. Render a CheckboxGroup with at least one disabled child element
  3. Toggle the root checkbox

Current behavior

Currently when toggling the root checkbox in a group, all of the children get checked / unchecked (regardless if disabled). I have tried to do a filter for disabled and controlled on my end of the component but when doing so, I'm able to check all non-disabled / non-controlled children. But am then unable to uncheck anything via the root checkbox.

Expected behavior

The root checkbox shouldn't be able to change the checked state of any disabled / controlled items. But should always be able to check/uncheck all other children that allow so.

If this is something that is already possible and I am missing it, maybe you could add it to the docs

Context

No response

Your environment

No response

Search keywords: Checkbox, CheckboxGroup, disabled, indeterminate

@colangeloproductions colangeloproductions added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Oct 9, 2024
@atomiks atomiks added bug 🐛 Something doesn't work and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work
Projects
None yet
Development

No branches or pull requests

2 participants