Relative Content

Tag Archive for angularangular-reactive-forms

Angular Phone Directive with Validator not working when copying

We are using Angular 17 along with Reactive forms in our project.
We have written a custom directive which formats the output to a us phone number format 111-222-3333.
What we are seeing is that when someone tries to copy a number into the field – the field gets formatted, but the validator is still saying it is not valid.