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

fix(forms): emit statusChange when child controls have async validator #9652

Merged
merged 1 commit into from Jun 28, 2016

Conversation

kara
Copy link
Contributor

@kara kara commented Jun 28, 2016

This PR ensures that a statusChange event fires properly on a control container when its child control is using async validation, but the control container is not.

Fixes #9636

@@ -662,6 +662,28 @@ export function main() {
}));
});

describe('statusChanges', () => {
var g: FormGroup, c1: FormControl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why c1 and not just 'c'?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change var to let.

Or maybe don't use beforeEach, in which case you can switch var to const.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, removing beforeEach to use const and changing to "control"

@kara kara added action: review The PR is still awaiting reviews from at least one requested reviewer and removed state: WIP labels Jun 28, 2016
@vsavkin vsavkin added pr_state: LGTM and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jun 28, 2016
@kara kara merged commit 797914e into angular:master Jun 28, 2016
@kara kara deleted the statusChange branch October 13, 2018 01:10
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(forms): emitting "StatusChange" event
3 participants