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
If checkValidity function is called after deleting middle rows in Data grid component with required fields, the last row is not marked as required and displayed as red.
Version/Branch
Formiojs v5.0.1
To Reproduce
Steps to reproduce the behavior:
Create form with dataGrid, adding a required text field.
Use the form and add multiple rows, all without data filled.
Call checkValidity(null, true, null, false) is called all rows are marked as error in red
Delete a middle row (not last one).
Recall the function checkValidity(null, true, null, false) and the last row is not marked as red (required) causing a bug.
Expected behavior
All rows should be marked as required and red when checkvalidity function is called despite removing a middle row, last row should be marked as an error one.
Describe the bug
If checkValidity function is called after deleting middle rows in Data grid component with required fields, the last row is not marked as required and displayed as red.
Version/Branch
Formiojs v5.0.1
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All rows should be marked as required and red when checkvalidity function is called despite removing a middle row, last row should be marked as an error one.
Screenshots

Additional context
The bug is also present in other legacy versions https://formio.github.io/formio.js/app/builder
The text was updated successfully, but these errors were encountered: