Skip to content

Add defaultValue to CheckBoxGroup #6331

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

Merged
merged 4 commits into from
Sep 16, 2022
Merged

Add defaultValue to CheckBoxGroup #6331

merged 4 commits into from
Sep 16, 2022

Conversation

taysea
Copy link
Collaborator

@taysea taysea commented Sep 15, 2022

What does this PR do?

Adds defaultValue to CheckBoxGroup, similar to SelectMultiple.

Where should the reviewer start?

src/js/components/CheckBoxGroup/CheckBoxGroup.js

What testing has been done on this PR?

tested locally in storybook, added jest test.

How should this be manually tested?

Do Jest tests follow these best practices?

  • screen is used for querying.
  • The correct query is used. (Refer to this list of queries)
  • userEvent is used in place of fireEvent.
  • asFragment() is used for snapshot testing.

Any background context you want to provide?

What are the relevant issues?

Screenshots (if appropriate)

Do the grommet docs need to be updated?

Yes.

Should this PR be mentioned in the release notes?

Yes. Added defaultValue to CheckBoxGroup.

Is this change backwards compatible or is it a breaking change?

backwards compatible.

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

Successfully merging this pull request may close these issues.

2 participants