FIO-9418: Fixed the edit grid errors to show the outer error wrapper if any fields in the edit grid are invalid. #5935
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Link to Jira Ticket
https://formio.atlassian.net/browse/FIO-9418
Description
We previously used to show the "wrapper" error around the EditGrid component when a value inside the EditGrid is invalid. This was recently changed to where we only show the error around the component that has the problem. This works fine until that component is "hidden" to where you don't see any visual feedback if your row is invalid. This change ensures that we add the "wrapper" error around the EditGrid when a row error occurs which always gives the user a visual feedback if an EditGrid component is invalid.
Breaking Changes / Backwards Compatibility
This does re-introduce the error "wrapper" around the EditGrid, even if the error in the row is visually seen. Some may see this as "to many" visual indications of an error, but this also goes back to the way it used to work.
Dependencies
None
How has this PR been tested?
Manual
Checklist: