Fix calendar view no longer works in mobile view

This commit is contained in:
hadi 2023-07-24 12:34:15 +02:00
parent f0be2fcdca
commit 748673522c

View File

@ -92,7 +92,7 @@ export class SidemenuDate extends Et2Date
await super.init(); await super.init();
// This needs to wait until after everything is created // 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("mouseover", this._handleDayHover);
this._instance.weekNumbers.addEventListener("mouseout", this._clearHover); this._instance.weekNumbers.addEventListener("mouseout", this._clearHover);