Skip to content

Conversation

britt6612
Copy link
Collaborator

What does this PR do?

This PR changes back the form to delete the validationRulesRef.current[name].field

Where should the reviewer start?

form.js

What testing has been done on this PR?

storybook

How should this be manually tested?

storybook

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?

currently in storybook the maxSize story is not rendering because the validationRulesRef.current[name] is coming back undefined.

It was previously set to validationRulesRef.current[name].field however when dynamic form PR we removed the field portion but seeing that is needed for maxSize

What are the relevant issues?

closes grommet/hpe-design-system#2754

Screenshots (if appropriate)

Do the grommet docs need to be updated?

no

Should this PR be mentioned in the release notes?

no

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

backwards compatible

@britt6612 britt6612 requested a review from MikeKingdom July 26, 2022 01:44
@ericsoderberghp ericsoderberghp merged commit ef158bb into grommet:master Jul 26, 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.

Forms page crashes if you have a direct link or refresh the browser on that page
3 participants