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
Model starts as "dirty" #199
Comments
Strange. It only appears to be dirty if you're using ngModel and template-driven forms. FormControl and model-driven forms show up as |
It actually comes with both ng-pristine and ng-dirty which is really odd. Yes I am using template-driven forms. |
On initial load, we update the mask and write the value to the model. This is what's marking it as dirty. Seems we need to find a way to mark things as Pristine after initial load but I haven't found a place to successfully do that yet from within the directive. |
I have the same problem |
As I ran into the same problem earlier today, I provided a fix that straightens out a few quirks with the handling of |
I have the following input :
however, when the page loads, it is loaded with dirty. After a quick look at the code, it seems to come from the writeValue.
Any reason why it isn't loaded with dirty=false ?
The text was updated successfully, but these errors were encountered: