Skip to content

Commit 8e4b1ee

Browse files
FIO-8915: fixed an issue where errors list does not display in formmanager and formview pro (#1092)
1 parent 0f3d93c commit 8e4b1ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

projects/angular-formio/src/FormioBaseComponent.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ export class FormioBaseComponent implements OnInit, OnChanges, OnDestroy {
445445
}
446446
: {
447447
message: error.message || error.toString(),
448-
paths: error.path ? [error.path] : [],
448+
paths: (error.path || error.formattedKeyOrPath) ? [error.path || error.formattedKeyOrPath] : [],
449449
}
450450
: {
451451
message: '',
@@ -479,10 +479,6 @@ export class FormioBaseComponent implements OnInit, OnChanges, OnDestroy {
479479
});
480480
}
481481
}
482-
483-
if (!this.noAlerts) {
484-
this.formio.showErrors();
485-
}
486482
}
487483

488484
if (shouldErrorDisplay) {
@@ -493,6 +489,10 @@ export class FormioBaseComponent implements OnInit, OnChanges, OnDestroy {
493489
});
494490
}
495491
});
492+
493+
if (this.formio && !this.noAlerts) {
494+
this.formio.showErrors(errors);
495+
}
496496
}
497497

498498
focusOnComponet(key: any) {

0 commit comments

Comments
 (0)