mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 04:23:04 +00:00
[DURACOM-194] fixed year input value on input type date
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user