From 5232f46d4458d20ef09193ec2351e0ddb562fbf1 Mon Sep 17 00:00:00 2001 From: sam detweiler Date: Sun, 8 Dec 2024 14:23:53 -0600 Subject: [PATCH] fix #3267 again this time, dropped from big cal update (#3650) this change was dropped from #3267 by mistake --- CHANGELOG.md | 1 + modules/default/calendar/calendar.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8634bbb0..18e8f9eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,7 @@ _This release is scheduled to be released on 2025-01-01._ - [calendar] - fix showEndsOnlyWithDuration not working, #3598, applies ONLY to full day events - [calendar] - fix showEnd for Full Day events #3602 - [tests] Suppress "module is not defined" in e2e tests +- [calendar] - fixes #3267 (styles array, really this time!) ## [2.29.0] - 2024-10-01 diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/calendar.js index 6af652ba..c97f353e 100644 --- a/modules/default/calendar/calendar.js +++ b/modules/default/calendar/calendar.js @@ -907,9 +907,9 @@ Module.register("calendar", { let p = this.getCalendarProperty(url, property, defaultValue); if (property === "symbol" || property === "recurringSymbol" || property === "fullDaySymbol") { const className = this.getCalendarProperty(url, "symbolClassName", this.config.defaultSymbolClassName); - p = className + p; + if (p instanceof Array) p.push(className); + else p = className + p; } - if (!(p instanceof Array)) p = [p]; return p; },