Fix calendar view no longer works in mobile view

This commit is contained in:
hadi 2023-07-24 12:34:15 +02:00
parent 0bd9ec1cf2
commit 95c2bdb6b4

View File

@ -92,7 +92,7 @@ export class SidemenuDate extends Et2Date
await super.init();
// This needs to wait until after everything is created
if(this._instance.daysContainer !== undefined)
if(this._instance?.daysContainer !== undefined)
{
this._instance.weekNumbers.addEventListener("mouseover", this._handleDayHover);
this._instance.weekNumbers.addEventListener("mouseout", this._clearHover);