[BUG] checkValidity fails to validate Datagrid when deleting any row except the last 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:
- Create form with dataGrid, adding a required text field.
- Render the form, with a button that calls the function checkValidity (https://help.form.io/developers/form-development/form-renderer#form.checkvalidity-data-dirty-row-silent)
- 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.
Screenshots

Additional context The bug is also present in other legacy versions https://formio.github.io/formio.js/app/builder
Hi, @celu . Thank you for reporting this issue. I am able to reproduce 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. For internal reference: FIO-10031
Hello @Victoriya25 ,
Is there already any timeline of when this issue will be resolved?
Hello @celu ! The ticket is in the backlog. We appreciate your patience while the team works on it.