fix(forms): Update types for TypeScript nullability support
This reverts commit 2e47a0d19f
.
This commit is contained in:

committed by
Tobias Bosch

parent
56c46d70f7
commit
6649743a2d
@ -45,7 +45,7 @@ export class RangeValueAccessor implements ControlValueAccessor {
|
||||
this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', parseFloat(value));
|
||||
}
|
||||
|
||||
registerOnChange(fn: (_: number) => void): void {
|
||||
registerOnChange(fn: (_: number|null) => void): void {
|
||||
this.onChange = (value) => { fn(value == '' ? null : parseFloat(value)); };
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user