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

Browser validation is not triggered when we have mask directive set, even if the mask does not have value #1379

Open
burcalidiagabriela opened this issue Jun 27, 2024 · 0 comments
Labels

Comments

@burcalidiagabriela
Copy link

🐞 bug report

Is this a regression?

No

Description

Browser validation is not triggered when we have mask directive set on an input.
I created an example with one input with mask set, one with mask empty, one input with mask directive without value and one without mask. All contain the classic minlength validation.
It can be seen that if we write 2 characters in the input and press submit, only the simple input contains the error popup from the browser.
image

🔬 Minimal Reproduction

https://stackblitz.com/edit/cbohpi-ye2vvv?file=src%2Fexample%2Fbutton-overview-example.html

🌍 Your Environment

Angular: 17.0.0
ngx-mask: 16.4.2
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