Make sure we are not hiding unnecessarily the grid which could lead to grid invisibility in mobile view

This commit is contained in:
hadi 2023-07-24 15:14:41 +02:00
parent 95c2bdb6b4
commit df1a099078

View File

@ -699,7 +699,10 @@ export class et2_calendar_timegrid extends et2_calendar_view implements et2_IDet
var old_value = this.options.disabled; var old_value = this.options.disabled;
this.disabled = disabled; this.disabled = disabled;
this.div.get(0).classList.toggle("hideme", disabled); if (this.div.get(0).checkVisibility())
{
this.div.get(0).classList.toggle("hideme", disabled);
}
if(disabled) if(disabled)
{ {