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): avoid issues with nulls checking on validation status and… #4338

Closed
wants to merge 1 commit into from

Conversation

alxhub
Copy link
Member

@alxhub alxhub commented Sep 23, 2015

… other form states.

@alxhub alxhub added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 23, 2015
@@ -3,17 +3,17 @@ import {AbstractControl} from '../model';
export class AbstractControlDirective {
get control(): AbstractControl { return null; }

get value(): any { return this.control.value; }
get value(): any { return this.control != null ? this.control.value : null; }
Copy link
Contributor

Choose a reason for hiding this comment

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

could you use isPresent(this.control) instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can do that.

@vsavkin
Copy link
Contributor

vsavkin commented Sep 23, 2015

Maybe you can add an integration test that fails without the fix?

@alxhub alxhub force-pushed the forms-small-fixes branch 2 times, most recently from d239ac3 to ec20d17 Compare September 23, 2015 22:08
@alxhub
Copy link
Member Author

alxhub commented Sep 23, 2015

Added an integration test, which does seem to pass. :)

@vsavkin vsavkin assigned alxhub and unassigned vsavkin Sep 24, 2015
@vsavkin vsavkin removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 24, 2015
@alxhub alxhub added the action: merge The PR is ready for merge by the caretaker label Sep 24, 2015
@mary-poppins
Copy link

Merging PR #4338 on behalf of @alxhub to branch presubmit-alxhub-pr-4338.

@mary-poppins mary-poppins removed the action: merge The PR is ready for merge by the caretaker label Sep 24, 2015
@alxhub alxhub added the action: merge The PR is ready for merge by the caretaker label Sep 28, 2015
@mary-poppins mary-poppins removed the action: merge The PR is ready for merge by the caretaker label Sep 28, 2015
@mary-poppins
Copy link

Merging PR #4338 on behalf of @alxhub to branch presubmit-alxhub-pr-4338.

@alxhub alxhub closed this in 7714d6a Sep 28, 2015
@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 7, 2019
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.

4 participants