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

Reactive Form erreur #12

Closed
akanass opened this issue Nov 13, 2016 · 1 comment
Closed

Reactive Form erreur #12

akanass opened this issue Nov 13, 2016 · 1 comment

Comments

@akanass
Copy link
Contributor

akanass commented Nov 13, 2016

Lors de l'édition d'une personne, un message d'erreur apparait dans la console:

It looks like you are using the disabled attribute with a reactive form directive. If you set disabled to true when you set up this control in your component class, the disabled attribute will actually be set in the DOM for you. We recommend using this approach to avoid 'changed after checked' errors.
       
      Example: 
      form = new FormGroup({
        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),
        last: new FormControl('Drew', Validators.required)
      });
@akanass
Copy link
Contributor Author

akanass commented Nov 15, 2016

Fixed in associated PR

@akanass akanass closed this as completed Nov 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant