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

Checkbox checked state isn't reflecting checked state as expected #416

Open
elliott-joo opened this issue May 8, 2020 · 0 comments
Open

Comments

@elliott-joo
Copy link

When creating a checkbox with the isSelected prop, I'm expecting it to be the single source of truth, but it seems that the checkbox has its own local state, that toggles the checked state.

To replicate:

  • Create checkbox with isSelected={true}
  • Checkbox does successfully render initially with a selected checkbox
  • Click the checkbox
  • Expecting the checkbox to not be checked, as the passed prop is still true

Not sure if this is as intended, but it gets in the way when we don't want the checkbox to behave on its own, such as when the checkbox checked state shouldn't occur until a popup is confirmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant