From 6e679b28a4270cb00581f3e4f20eddf7eb63bff6 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 14 Mar 2023 09:41:47 +0100 Subject: [PATCH] fix background-color reported as "" stalls rendering of calendar --- calendar/js/et2_widget_daycol.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/js/et2_widget_daycol.ts b/calendar/js/et2_widget_daycol.ts index da9d6af42e..18a642c74d 100644 --- a/calendar/js/et2_widget_daycol.ts +++ b/calendar/js/et2_widget_daycol.ts @@ -858,7 +858,7 @@ export class et2_calendar_daycol extends et2_valueWidget implements et2_IDetache { // Avoid white, which is hard to see // Use border-bottom-color, Firefox doesn't give a value with border-color - const color = (new ColorTranslator(event.div.css('background-color'))).RGB !== 'rgb(255,255,255)' ? + const color = (new ColorTranslator(event.div.css('background-color') || '#FFFFFF')).RGB !== 'rgb(255,255,255)' ? event.div.css('background-color') : event.div.css('border-bottom-color'); if(color !== 'rgba(0, 0, 0, 0)') {