[DURACOM-194] fixed year input value on input type date

This commit is contained in:
Alisa Ismailati
2023-10-30 16:14:13 +01:00
parent 543b4ad576
commit c412c1fa13
2 changed files with 3 additions and 5 deletions

View File

@@ -103,13 +103,12 @@ export class NumberPickerComponent implements OnInit, ControlValueAccessor {
if (i >= this.min && i <= this.max) {
this.value = i;
this.emitChange();
} else if (event.target.value === null || event.target.value === '') {
this.value = null;
this.emitChange();
} else {
this.value = undefined;
}
this.emitChange();
} catch (e) {
this.value = undefined;
}