fix #3267 again this time, dropped from big cal update (#3650)

this change was dropped from #3267 by mistake
This commit is contained in:
sam detweiler 2024-12-08 14:23:53 -06:00 committed by GitHub
parent 39ab651319
commit 5232f46d44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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;
},