"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/material/checkbox/checkbox.ts" between
components-11.2.6.tar.gz and components-11.2.7.tar.gz

About: components offers Component infrastructure and Material Design components for Angular.

checkbox.ts  (components-11.2.6):checkbox.ts  (components-11.2.7)
skipping to change at line 372 skipping to change at line 372
} }
} }
private _emitChangeEvent() { private _emitChangeEvent() {
const event = new MatCheckboxChange(); const event = new MatCheckboxChange();
event.source = this; event.source = this;
event.checked = this.checked; event.checked = this.checked;
this._controlValueAccessorChangeFn(this.checked); this._controlValueAccessorChangeFn(this.checked);
this.change.emit(event); this.change.emit(event);
// Assigning the value again here is redundant, but we have to do it in case
it was
// changed inside the `change` listener which will cause the input to be out
of sync.
if (this._inputElement) {
this._inputElement.nativeElement.checked = this.checked;
}
} }
/** Toggles the `checked` state of the checkbox. */ /** Toggles the `checked` state of the checkbox. */
toggle(): void { toggle(): void {
this.checked = !this.checked; this.checked = !this.checked;
} }
/** /**
* Event handler for checkbox input element. * Event handler for checkbox input element.
* Toggles checked state if element is not disabled. * Toggles checked state if element is not disabled.
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)