Skip to content

Conversation

taysea
Copy link
Collaborator

@taysea taysea commented Dec 13, 2022

What does this PR do?

Select does not currently support readOnly functionality. This aligns the typescript definition with the currently supported behavior.

Where should the reviewer start?

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

What testing has been done on this PR?

In local storybook:

Screen Shot 2022-12-13 at 9 40 41 AM

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?

Closes #6509

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:45
Copy link
Collaborator

@jcfilben jcfilben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ericsoderberghp ericsoderberghp merged commit 4be84bb into grommet:master Dec 15, 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.

Select's type definition shouldn't include the readOnly prop
3 participants