Fix commit df1a099078 broke calendar in some browsers

This commit is contained in:
hadi 2023-07-26 10:55:13 +02:00
parent 425178e06c
commit 3fc21a6434

View File

@ -698,8 +698,8 @@ export class et2_calendar_timegrid extends et2_calendar_view implements et2_IDet
{
var old_value = this.options.disabled;
this.disabled = disabled;
if (this.div.get(0).checkVisibility())
let style = window.getComputedStyle(this.div.get(0));
if (style.display !== 'none' && style.display !== '')
{
this.div.get(0).classList.toggle("hideme", disabled);
}