"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/form-field/form-field.ts" between
material2-7.3.3.tar.gz and material2-7.3.4.tar.gz

About: material2 offers Material Design components for Angular.

form-field.ts  (material2-7.3.3):form-field.ts  (material2-7.3.4)
skipping to change at line 302 skipping to change at line 302
// Run change detection if the value changes. // Run change detection if the value changes.
if (control.ngControl && control.ngControl.valueChanges) { if (control.ngControl && control.ngControl.valueChanges) {
control.ngControl.valueChanges control.ngControl.valueChanges
.pipe(takeUntil(this._destroyed)) .pipe(takeUntil(this._destroyed))
.subscribe(() => this._changeDetectorRef.markForCheck()); .subscribe(() => this._changeDetectorRef.markForCheck());
} }
// @breaking-change 7.0.0 Remove this check once _ngZone is required. Also r econsider // @breaking-change 7.0.0 Remove this check once _ngZone is required. Also r econsider
// whether the `ngAfterContentChecked` below is still necessary. // whether the `ngAfterContentChecked` below is still necessary.
if (this._ngZone) { const zone = this._ngZone;
this._ngZone.onStable.asObservable().pipe(takeUntil(this._destroyed)).subs
cribe(() => { if (zone) {
if (this._outlineGapCalculationNeededOnStable) { // Note that we have to run outside of the `NgZone` explicitly,
this.updateOutlineGap(); // in order to avoid throwing users into an infinite loop
} // if `zone-patch-rxjs` is included.
zone.runOutsideAngular(() => {
zone.onStable.asObservable().pipe(takeUntil(this._destroyed)).subscribe(
() => {
if (this._outlineGapCalculationNeededOnStable) {
this.updateOutlineGap();
}
});
}); });
} }
// Run change detection and update the outline if the suffix or prefix chang es. // Run change detection and update the outline if the suffix or prefix chang es.
merge(this._prefixChildren.changes, this._suffixChildren.changes).subscribe( () => { merge(this._prefixChildren.changes, this._suffixChildren.changes).subscribe( () => {
this._updateOutlineGapOnStable(); this._updateOutlineGapOnStable();
this._changeDetectorRef.markForCheck(); this._changeDetectorRef.markForCheck();
}); });
// Re-validate when the number of hints changes. // Re-validate when the number of hints changes.
 End of changes. 1 change blocks. 
6 lines changed or deleted 13 lines changed or added

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