-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(checkbox): Add RequiredTrue validator for md-checkbox #6006
Conversation
provide: NG_VALIDATORS, | ||
useExisting: forwardRef(() => MdCheckboxRequiredValidator), | ||
multi: true | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-2 indent on closing brace
multi: true | ||
}; | ||
|
||
@Directive({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a description for why this directive is necessary?
fixture.detectChanges(); | ||
|
||
expect(checkboxInstance.checked).toBe(false); | ||
expect(ngModel.valid).toBe(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to check if the error is specifically due to the required validator?
Comments addressed. Also added |
Looks like there's just a lint error now (missing license header) |
980e68c
to
22aa839
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR #4395 with workaround
Closes #4383