mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Fix required dates always failed as empty
This commit is contained in:
parent
44221f74ef
commit
e166211a66
@ -337,7 +337,9 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
|
|||||||
{
|
{
|
||||||
if(!value || value == 0 || value == "0")
|
if(!value || value == 0 || value == "0")
|
||||||
{
|
{
|
||||||
value = '';
|
value = "";
|
||||||
|
this.modelValue = "";
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
// Handle timezone offset, flatpickr uses local time
|
// Handle timezone offset, flatpickr uses local time
|
||||||
let date = new Date(value);
|
let date = new Date(value);
|
||||||
@ -350,6 +352,7 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
|
|||||||
{
|
{
|
||||||
this.setDate(formatDate);
|
this.setDate(formatDate);
|
||||||
}
|
}
|
||||||
|
this.modelValue = formatDate.toISOString();
|
||||||
}
|
}
|
||||||
|
|
||||||
getValue()
|
getValue()
|
||||||
|
Loading…
Reference in New Issue
Block a user