Skip to content

Commit

Permalink
FIO-8915: fixed an issue where errors list does not display in formma…
Browse files Browse the repository at this point in the history
…nager and formview pro (#1092)
  • Loading branch information
TanyaGashtold authored Aug 28, 2024
1 parent 0f3d93c commit 8e4b1ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions projects/angular-formio/src/FormioBaseComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ export class FormioBaseComponent implements OnInit, OnChanges, OnDestroy {
}
: {
message: error.message || error.toString(),
paths: error.path ? [error.path] : [],
paths: (error.path || error.formattedKeyOrPath) ? [error.path || error.formattedKeyOrPath] : [],
}
: {
message: '',
Expand Down Expand Up @@ -479,10 +479,6 @@ export class FormioBaseComponent implements OnInit, OnChanges, OnDestroy {
});
}
}

if (!this.noAlerts) {
this.formio.showErrors();
}
}

if (shouldErrorDisplay) {
Expand All @@ -493,6 +489,10 @@ export class FormioBaseComponent implements OnInit, OnChanges, OnDestroy {
});
}
});

if (this.formio && !this.noAlerts) {
this.formio.showErrors(errors);
}
}

focusOnComponet(key: any) {
Expand Down

0 comments on commit 8e4b1ee

Please sign in to comment.