You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a form is submitted with one or more validation errors in a data grid component, the validation errors appear on the banner at the top of the page which is an expected behaviour.
But if we update form input(s) which makes the data grid to be hidden, still the validation errors from the data grid stay on the banner which displays the errors.
Note : When the data -grid component is hidden, even with errors displayed in banner the submit action still works as expected. So there is no impact in the functioning, but the UI looks faulty.
Create a form which is has a data grid (not Edit Grid) component and the data grid component is displayed based on a condition driven by another input. (There is a form definition attached to this ticket, that can be used directly to reproduce the issue)
Form Output:
Provide the input to show the data grid component.
Submit the form and expect the errors to be displayed in the components and also on the top bannner.
Change the form input to hide the data grid.
You can see that the validation errors still persist on the top banner instead of dissapearing.
Expected behavior
When the data-grid component is hidden, no validation error is w.r.t the component expected to be displayed.
Formio SDK version previous used by us did not result in this error.
Formio SDK version previous used: "formiojs": "^4.21.4"
Additional context
Add any other context about the problem here.
Thank you for reporting this issue. I can reproduce it and have logged a ticket for the backlog. We are always willing to review any contributions from the open-source community to resolve this issue.
Describe the bug
When a form is submitted with one or more validation errors in a data grid component, the validation errors appear on the banner at the top of the page which is an expected behaviour.
But if we update form input(s) which makes the data grid to be hidden, still the validation errors from the data grid stay on the banner which displays the errors.
Note : When the data -grid component is hidden, even with errors displayed in banner the submit action still works as expected. So there is no impact in the functioning, but the UI looks faulty.
Version/Branch
Formio SDK Version:
"@formio/js": "^5.0.0"
To Reproduce
Steps to reproduce the behavior:
Form Output:
Expected behavior
When the data-grid component is hidden, no validation error is w.r.t the component expected to be displayed.
Formio SDK version previous used by us did not result in this error.
Formio SDK version previous used
:"formiojs": "^4.21.4"
Additional context
Add any other context about the problem here.
Sample Form Definition to reproduce the error
The text was updated successfully, but these errors were encountered: