Skip to content

Update Select value type definition #6537

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 2 commits into from
Dec 19, 2022
Merged

Update Select value type definition #6537

merged 2 commits into from
Dec 19, 2022

Conversation

taysea
Copy link
Collaborator

@taysea taysea commented Dec 13, 2022

What does this PR do?

Fixes Select value type definition to include number which is documented.

Where should the reviewer start?

src/js/components/Select/index.d.ts

What testing has been done on this PR?

Tested locally in storybook to make sure number is supported.

How should this be manually tested?

Set Select value to a number that is included in the options array.

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?

Closes #6522

Screenshots (if appropriate)

Do the grommet docs need to be updated?

No.

Should this PR be mentioned in the release notes?

Yes. Typescript fix.

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

Backwards compatible.

@taysea taysea requested a review from jcfilben December 13, 2022 17:35
@ericsoderberghp ericsoderberghp merged commit f857cc6 into grommet:master Dec 19, 2022
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.

Type for select value isn't right
3 participants