From 3fc21a6434593b75394f379adb98ffeef2b2c8e1 Mon Sep 17 00:00:00 2001 From: hadi Date: Wed, 26 Jul 2023 10:55:13 +0200 Subject: [PATCH] Fix commit df1a09907897282ca89613de5cac56747fce606f broke calendar in some browsers --- calendar/js/et2_widget_timegrid.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/js/et2_widget_timegrid.ts b/calendar/js/et2_widget_timegrid.ts index 6522049965..79bd34b20f 100644 --- a/calendar/js/et2_widget_timegrid.ts +++ b/calendar/js/et2_widget_timegrid.ts @@ -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); }