[BUG] datagrid validation malfunctioning
Environment
Please provide as many details as you can:
- Hosting type
- [x] Form.io
- Formio.js version: latest
- Frontend framework: MEAN, angular-formio
- Browser: chrome, mozilla
- Browser version: latest
Steps to Reproduce
- Add DataGrid to form & add some text, select component with required validation in it & save the form.
- On submit button setting, untick the disabled on form invalid checkbox.
- Now open the above form in renderer, fill first row in datagrid with valid data.
- Click on add another row, and now Remove that same row, now hit submit.
Expected behavior
It should submit the form properly.
Observed behavior
Its showing validation errors for the deleted row also & stopping form from submitting. @travist @randallknutson
@imshivamchauhan Thank you for the report. We were able to replicate this issue on our end as well and have created a ticket for the issue. 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.
I guess in Datagrid.js "removeRow" function you have to splice this.components as well to fix this
@sanjaykrgaur if you have an idea where to resolve this issue, please submit a pull request with your change and we will take a look.
This issue has been resolved on the latest version of formio.js