From c16c9d98403de7bfdb9c5f6285ace008ec6baff9 Mon Sep 17 00:00:00 2001 From: Travis Tidwell Date: Wed, 4 Dec 2024 11:13:57 -0600 Subject: [PATCH] FIO-9418: Fixed the edit grid errors to show the outer error wrapper if any fields in the edit grid are invalid. --- src/components/editgrid/EditGrid.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/editgrid/EditGrid.js b/src/components/editgrid/EditGrid.js index 819cf1872d..260f189678 100644 --- a/src/components/editgrid/EditGrid.js +++ b/src/components/editgrid/EditGrid.js @@ -1219,9 +1219,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; }