ngx-mask icon indicating copy to clipboard operation
ngx-mask copied to clipboard

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

Open burcalidiagabriela opened this issue 1 year ago • 0 comments

🐞 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

burcalidiagabriela avatar Jun 27 '24 12:06 burcalidiagabriela