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