react
react copied to clipboard
[BUG] Wrong validation
Environment
- React-formio version: "^4.2.4"
- Formio.js version: "4.11.0"
- Frontend framework: React "^16.8.6"
- Browser: many browsers.
- Browser version: many browser versions.
Situations in which the bug appears:
Situation 1:
- There is a display simple condition in the parent "Panel"/"Tab" component. The display simple condition is set in the "Conditional" tab when editing the component.
- Inside this parent component, there is an "Edit Grid" component with the "Open First Row when Empty" option activated.
- Inside this "Edit Grid" there is a required text field component.
Situation 2:
- There is a display simple condition in the "Edit Grid" component. The display simple condition is set in the "Conditional" tab when editing the component.
- In the same "Edit Grid" component, the "Open First Row when Empty" option is activated.
- Inside this "Edit Grid" there is a required text field component.
Expected behavior
It is expected that validation will work correctly.
Observed behavior
Error message as if the required field is not filled in.

That is because of "Clear Value When Hidden" in EditGrid. You can deselect this option and it works.
I am closing the issue as it was created too long ago and there is no new comments here. If the issue is not resolved, please reopen it. Thanks!