Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using showTypedMask option causes form control to be invalid even if one of mask is fulfilled #1276

Closed
Ihuarraquax opened this issue Nov 22, 2023 · 1 comment
Labels

Comments

@Ihuarraquax
Copy link

🐞 bug report

Is this a regression?

Do not know

Description

Using showTypedMask option causes form control to be invalid even if one of mask is valid. Check screen and stackblitz

image

🔬 Minimal Reproduction

https://stackblitz.com/edit/angular-f3qfph?file=src%2Fmain.ts

  1. Open stackblitz
  2. Type 5 digits in both inputs
  3. See validation error

🔥 Exception or Error

form control validation error: { "mask": { "requiredMask": "00000-0000", "actualValue": "12324" } }

🌍 Your Environment

Angular Version:

angular 16
ngx-mask 16.4.1

Anything else relevant?

@andriikamaldinov1
Copy link
Collaborator

@Ihuarraquax Thanks for using Ngx-mask. Please update to latest version.
It example all work as expected - https://stackblitz.com/edit/angular-gvb8nk?file=src%2Fmain.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants