"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/material-experimental/mdc-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
this.checked = !this.checked; this.checked = !this.checked;
this._checkboxFoundation.handleChange(); this._checkboxFoundation.handleChange();
// Dispatch our change event // Dispatch our change event
const newEvent = new MatCheckboxChange(); const newEvent = new MatCheckboxChange();
newEvent.source = this as any; newEvent.source = this as any;
newEvent.checked = this.checked; newEvent.checked = this.checked;
this._cvaOnChange(this.checked); this._cvaOnChange(this.checked);
this.change.next(newEvent); this.change.next(newEvent);
// 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._nativeCheckbox) {
this._nativeCheckbox.nativeElement.checked = this.checked;
}
} }
/** Gets the value for the `aria-checked` attribute of the native input. */ /** Gets the value for the `aria-checked` attribute of the native input. */
_getAriaChecked(): 'true'|'false'|'mixed' { _getAriaChecked(): 'true'|'false'|'mixed' {
if (this.checked) { if (this.checked) {
return 'true'; return 'true';
} }
return this.indeterminate ? 'mixed' : 'false'; return this.indeterminate ? 'mixed' : 'false';
} }
 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)