Revert "fix(forms): Update types for TypeScript nullability support"
This reverts commit 6649743a2d
.
Broke in G3.
This commit is contained in:
@ -47,7 +47,7 @@ export class NumberValueAccessor implements ControlValueAccessor {
|
||||
this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', normalizedValue);
|
||||
}
|
||||
|
||||
registerOnChange(fn: (_: number|null) => void): void {
|
||||
registerOnChange(fn: (_: number) => void): void {
|
||||
this.onChange = (value) => { fn(value == '' ? null : parseFloat(value)); };
|
||||
}
|
||||
registerOnTouched(fn: () => void): void { this.onTouched = fn; }
|
||||
|
Reference in New Issue
Block a user