Skip to content

Commit

Permalink
Fix Form Validation Message
Browse files Browse the repository at this point in the history
  • Loading branch information
christianezeani committed Apr 29, 2024
1 parent 0ce1d17 commit eaf28b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export class NGSuiteFormMessageComponent implements AfterContentInit, AfterViewI
const { control: { group, groupDirective, entry } } = this;

if (!entry || !group) return;
if (!groupDirective.submitted && !entry.dirty) return;

console.log(entry);
const shouldProcessChange = groupDirective.submitted || groupDirective.touched || groupDirective.dirty;
if (!shouldProcessChange) return;

switch (true) {
case entry.pending: {
Expand Down

0 comments on commit eaf28b6

Please sign in to comment.