mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
Calendar: Avoid JS error from flatpickr on init (provided an invalid date)
This commit is contained in:
parent
e7b340990a
commit
cbf47d7156
@ -138,7 +138,7 @@ export class SidemenuDate extends Et2Date
|
|||||||
|
|
||||||
set_value(value)
|
set_value(value)
|
||||||
{
|
{
|
||||||
if(typeof value !== "string" && value.length == 8)
|
if(typeof value === "string" && value.length == 8)
|
||||||
{
|
{
|
||||||
super.set_value(parseDate(value, "Ymd"));
|
super.set_value(parseDate(value, "Ymd"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user