Skip to content

Commit

Permalink
FIO-9418: Fixed the edit grid errors to show the outer error wrapper …
Browse files Browse the repository at this point in the history
…if any fields in the edit grid are invalid. (#5935)
  • Loading branch information
travist authored Dec 10, 2024
1 parent 772a24c commit bb6839b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/editgrid/EditGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -1222,9 +1222,12 @@ export default class EditGridComponent extends NestedArrayComponent {
}
}

if (!this.component.rowDrafts || this.root?.submitted) {
if (editRow.alerts && (!this.component.rowDrafts || this.root?.submitted)) {
this.showRowErrorAlerts(editRow, editRow.errors);
}
else if (editRow.errors?.length) {
this.setCustomValidity(editRow.errors, dirty);
}

return editRow.errors;
}
Expand Down

0 comments on commit bb6839b

Please sign in to comment.