Fix gantt chart couldn't load data

broken by 2066523.
Loading caused 'Exception "t is undefined" while handling JSON response from ....' deep inside dhtmlx-gantt
This commit is contained in:
nathan 2023-02-28 09:05:49 -07:00
parent a94038163c
commit da1b1f6999

View File

@ -660,7 +660,11 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(LitFlatpickr))
{ {
return flatpickr.formatDate(<Date>this.defaultDate, this.getOptions().dateFormat); return flatpickr.formatDate(<Date>this.defaultDate, this.getOptions().dateFormat);
} }
return this._inputNode?.value + "Z" || ''; if(typeof egwIsMobile == "function" && egwIsMobile())
{
return this._inputNode?.value + "Z" || "";
}
return this._inputNode?.value || '';
} }
let value = this._inputElement.value; let value = this._inputElement.value;