Skip to content

Commit a3a552e

Browse files
JoelJansenDJoël Jansen Duighuizen
andauthored
Added cases where the event month lies between the date and end months (inclusive) and the event year is equal to the date year. (#185)
Co-authored-by: Joël Jansen Duighuizen <[email protected]>
1 parent 5358211 commit a3a552e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/stores/cache/event-cache.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ class MonthEventCache extends MonthCache<CalEvent> {
106106
) {
107107
return true;
108108
}
109+
// Event occurs in the date year but lies between the date and end months (inclusive)
110+
if (
111+
date.year == this.year &&
112+
date.month <= this.month &&
113+
end.month >= this.month
114+
) {
115+
return true;
116+
}
109117
if (
110118
date.year < this.year &&
111119
end.year == this.year &&

0 commit comments

Comments
 (0)