-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Form is marked dirty when dropdown is pre-populated #39
Comments
Both the form and the source should be the same value, so you probably should update also the source value. |
I am not clear where? I an checking onInit |
Can you create a simple reproduction on stackblitz? |
I have never tried it, but basically if the form has some initial values that were passed into dropdowns the inputs$ are updated with the values and the formGroup is not, so I am not clear at what point to check for dirty, I also installed and downloaded the git but it's broken. |
https://angular-6-template-1rcxch.stackblitz.io see this please |
Hello, where you able to see the code? |
I have a dropdown that get's pre-populated with default first value from the options, when the form is created it's empty all values are null but then inputs$ that I am using from ngx-sub-form on subscribe are populated with the dropdown values so the form becomes pristine:false and the form is marked as dirty, I am not clear how to fix it. Thank you
The text was updated successfully, but these errors were encountered: