Calendar: Changing date using buttons in toolbar did not update sidemenu calendar to match

This commit is contained in:
nathan 2022-08-22 15:04:14 -06:00
parent 018dd11bd2
commit 1b32b124c4

View File

@ -127,14 +127,14 @@ export class SidemenuDate extends Et2Date
set_value(value)
{
if(!value || value == 0 || value == "0" || typeof value !== "string")
{
return super.set_value(value);
}
if(value.length == 8)
if(typeof value !== "string" && value.length == 8)
{
super.set_value(parseDate(value, "Ymd"));
}
else
{
super.set_value(value);
}
}