Merge branch 'next' into develop

This commit is contained in:
Erik Tiekstra
2021-11-18 12:30:38 +01:00
5 changed files with 17 additions and 22 deletions

View File

@@ -75,7 +75,7 @@ export class InputComponent implements AfterViewInit, ControlValueAccessor, OnCh
}
checkForChange(rawValue: string): void {
const value = this.uiType === UiInputType.NUMBER ? +rawValue : rawValue;
const value = this.uiType === UiInputType.NUMBER ? (rawValue !== '' ? +rawValue : null) : rawValue;
if (this._value !== value) {
if (this.onChange) {
this.onChange(value);