formio.js
formio.js copied to clipboard
In datagrid if we add a new blank row and delete it then on submit , validation are fired even for the row which was deleted [BUG]
Environment
Please provide as many details as you can:
- Hosting type
- [ ] Local deployment
- Version: 4.2.6
- [ ] Local deployment
- Formio.js version: 4.2.6
- Frontend framework: Angular-formio
- Browser: Google Chrome
- Browser version: 77.0.3865.90 (Official Build) (64-bit)
Steps to Reproduce
- Add a Text Field component on the from.
- Add a Data Grid component on the form.
- Add a Text Field component within the Data Grid and mark this field as "Required" from validation tab.
- Save the form.
- Now run the form.
- Add another row at run time in Data Grid. Fill the value in Text Field in first row and delete the second row from Data Grid.
Expected behavior: Submit button should be enabled.
Observed behavior: Submit button is being disabled, validation for second row is working still while second row from Data Grid has been removed.
Example
NA
@pardeep224 Thank you for the report. We were able to replicate this issue on our end as well and have created a ticket in our 4x branch. We will review during our planning meeting next week. Please note, we welcome pull requests in this library. If you need this item expedited, please feel free to contact [email protected] for pricing.
This issue has been resolved in the latest version of formio.js (4.3.3).