mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +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")
|
||||
{
|
||||
value = '';
|
||||
value = "";
|
||||
this.modelValue = "";
|
||||
return;
|
||||
}
|
||||
// Handle timezone offset, flatpickr uses local time
|
||||
let date = new Date(value);
|
||||
@ -350,6 +352,7 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
|
||||
{
|
||||
this.setDate(formatDate);
|
||||
}
|
||||
this.modelValue = formatDate.toISOString();
|
||||
}
|
||||
|
||||
getValue()
|
||||
|
Loading…
Reference in New Issue
Block a user