Skip to content

Commit

Permalink
issue resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwiniagre1 committed Jul 6, 2021
1 parent 87545e6 commit debff6e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/module/forms/datetimepicker/datetimepicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -906,9 +906,11 @@ export class AmexioDateTimePickerComponent extends ListBaseDatepickerComponent<s
if (this.innerValue instanceof Date || 'number' === typeof this.innerValue || 'string' === typeof this.innerValue) {
if (('number' === typeof this.innerValue)) {
this.innerValue = new Date(this.innerValue);
console.log('v1', value);
}
if (('string' === typeof this.innerValue)) {
this.setInnerValue();
console.log('v2', value);
}
if (this.utc) {
this.setUtcInnerValue();
Expand All @@ -918,6 +920,7 @@ export class AmexioDateTimePickerComponent extends ListBaseDatepickerComponent<s
this.setTimeStamp();
} else {
this.refactorValidate();
console.log('v3', value);
}
this.currrentDate = this.dateModel;
this.selectedDate = this.currrentDate;
Expand All @@ -926,7 +929,11 @@ export class AmexioDateTimePickerComponent extends ListBaseDatepickerComponent<s
if (this.required) {
this.isValid = true;
}
} else {
}else if(value == '' || value == null){
this.innerValue = '';
this.dateModel = '';
}
else {
this.negateisValid();
}
}
Expand Down

0 comments on commit debff6e

Please sign in to comment.