Skip to content

Fix(ArrayInput): display validation error when validation is performed via useFormContext's trigger#11265

Open
jonathanarnault wants to merge 1 commit into
masterfrom
fix/3167-wizard-form
Open

Fix(ArrayInput): display validation error when validation is performed via useFormContext's trigger#11265
jonathanarnault wants to merge 1 commit into
masterfrom
fix/3167-wizard-form

Conversation

@jonathanarnault
Copy link
Copy Markdown
Contributor

@jonathanarnault jonathanarnault commented May 19, 2026

Problem

In RA Enterprise <WizardForm />, when an array input is in the second step and the user clicks on the Next button, the array input error is not shown if it is required.

Solution

Display the error by checking if the form has an error when validation has been triggered by a user's action.

How To Test

  1. make storybook
  2. Go to http://localhost:9010/?path=/story/ra-ui-materialui-input-arrayinput--trigger-validation

Additional Checks

  • The PR targets master for a bugfix or a documentation fix, or next for a feature
  • The PR includes unit tests (if not possible, describe why)
  • The PR includes one or several stories (if not possible, describe why)
  • The documentation is up to date

Also, please make sure to read the contributing guidelines.

@jonathanarnault jonathanarnault added the WIP Work In Progress label May 19, 2026
@jonathanarnault jonathanarnault added RFR Ready For Review and removed WIP Work In Progress labels May 19, 2026
@jonathanarnault jonathanarnault marked this pull request as ready for review May 19, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RFR Ready For Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant