-
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): Emit event when checkbox's indeterminate value changes #2130
Conversation
@@ -203,6 +209,7 @@ export class MdCheckbox implements ControlValueAccessor { | |||
this._transitionCheckState( | |||
this.checked ? TransitionCheckState.Checked : TransitionCheckState.Unchecked); | |||
} | |||
this.indeterminateChange.emit(this._indeterminate); |
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.
Should this event only fire when the value changes?
@@ -138,6 +138,9 @@ export class MdCheckbox implements ControlValueAccessor { | |||
/** Event emitted when the checkbox's `checked` value changes. */ | |||
@Output() change: EventEmitter<MdCheckboxChange> = new EventEmitter<MdCheckboxChange>(); | |||
|
|||
/** Event emitted when the checkbox's `indeterminate` value changes. */ | |||
@Output() indeterminateChange: EventEmitter<Boolean> = new EventEmitter<Boolean>(); |
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.
boolean
lower-case
35ad57a
to
7aea87d
Compare
7aea87d
to
dcfdae0
Compare
Comments addressed. Please take another look. Thanks! |
…angular#2130) * Emit event when checkbox indeterminate value changes * Add test * Use boolean and emit indeterminate only if value changed
when will this change released? |
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. |
Fixes #2004
R: @jelbourn