From e9709a69eb1b181a9249eea2d85b9957648b657c Mon Sep 17 00:00:00 2001 From: anliben Date: Thu, 5 Oct 2023 17:46:49 -0300 Subject: [PATCH] fix(input): adiciona indicacao visual de campo invalido adiciona indicacao visual de campo invalido no `po-input` Fixes 7479 --- projects/ui/src/lib/components/po-field/po-input/po-mask.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/ui/src/lib/components/po-field/po-input/po-mask.ts b/projects/ui/src/lib/components/po-field/po-input/po-mask.ts index d8e9e8458e..fbc4cbb8c3 100644 --- a/projects/ui/src/lib/components/po-field/po-input/po-mask.ts +++ b/projects/ui/src/lib/components/po-field/po-input/po-mask.ts @@ -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; }