Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix(form): make ngForm $pristine after nested control.$setPristine() (brute force version) #13798

Closed

Conversation

linoleum-js
Copy link

When calling $setPristine on the nested form or control,
form becomes $pristine if all the nested controls are pristine

Closes #13715

When calling $setPristine on the nested form or control,
form becomes $pristine of all the nested controls are pristine

Closes angular#13715
…(brute force version)

When calling $setPristine on the nested form or control,
form becomes $pristine of all the nested controls are pristine

Closes angular#13715
@petebacondarwin petebacondarwin added this to the 1.6.x milestone Jan 19, 2016
@petebacondarwin
Copy link
Member

Thanks for this @linoleum-js but I think that a better algorithm would be needed. The suggestion of a counter would work well. Do you want to try to implement that instead?

@petebacondarwin petebacondarwin modified the milestones: Ice Box, 1.6.x Jan 19, 2016
@linoleum-js
Copy link
Author

@petebacondarwin I already did #13773. @gkalpak ask me to split two solutions into different PRs

@petebacondarwin
Copy link
Member

Thanks. It is good to cross reference these things.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants