[Grid Validation]: formGroup has incorrect valid state if first editable column has custom template #15379
Labels
🐛 bug
Any issue that describes a bug
forms: validation
Forms validation related, including ngModel.status aka VALID/INVALID/TOUCHED/PRISTINE etc.
grid: row-editing
grid
🆕 status: new
Description
If the IgxGrid is configured via reactive forms so that all columns are required and we want to prevent row adding if the formGroup state is invalid, the result differs when the first editable column has a default template and a custom template.
(1) If the first column has a default template, we add a new row via the action strip and click "Apply", the row is NOT added since the fields are not populated with data.
(2) If the first column has a custom template, we add a new row via the action strip and click "Apply", the row IS added even though the fields are not populated with data.
Maybe related to #13165
Steps to reproduce
Result
For the second grid, the row is added even though the fields are not populated with data and they are set as required.
Expected result
The observed behavior in the first grid - the row should not be added and the formGroup state should be invalid.
Attachments
The text was updated successfully, but these errors were encountered: