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

(cherry picked from commit c412c1fa13)
This commit is contained in:
Alisa Ismailati
2023-10-30 16:14:13 +01:00
committed by github-actions[bot]
parent e54723aa85
commit c99487babc
2 changed files with 3 additions and 5 deletions

View File

@@ -89,8 +89,7 @@ export class DsDatePickerComponent extends DynamicFormControlComponent implement
}
}
this.maxYear = this.initialYear + 100;
this.maxYear = now.getUTCFullYear() + 100;
}
onBlur(event) {

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;
}