Skip to content

Commit

Permalink
fix(input): adiciona indicacao visual de campo invalido
Browse files Browse the repository at this point in the history
adiciona indicacao visual de campo invalido no `po-input`

 Fixes 7479
  • Loading branch information
anliben committed Oct 5, 2023
1 parent fe98135 commit e9709a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions projects/ui/src/lib/components/po-field/po-input/po-mask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,12 @@ export class PoMask {
this.valueToModel = this.removeFormattingValue(valueProcessed);
}


if(valueProcessed.length > 1) {
if (valueProcessed.length > 1) {
this.validMask.set(true);
} else {
this.validMask.set(false);
}

return valueProcessed;
}

Expand Down

0 comments on commit e9709a6

Please sign in to comment.