mattlewis92 / angular-calendar

A flexible calendar component for angular 15.0+ that can display events on a month, week or day view.
https://mattlewis92.github.io/angular-calendar/
MIT License
2.72k stars 863 forks source link

Selected day with event, css class delete issue #1569

Closed pukanszkypeter closed 2 years ago

pukanszkypeter commented 2 years ago

Hi,

i have found an issue when handling day selections on month view. Or am i missing something?

I am adding a css class to a selected day like that: day.cssClass = 'calendar-day-selected' And removing it with: delete day.cssClass

It works perfectly by days with no events. But if a day has events, then delete day.cssClass does nothing on document level. If i print out the cssClass, then it gives me undefined, but on html i still see the class on the element.

In addition i am using the activeDayIsOpen feature to open days with events, i think the issue is in correlation with it, because when i set it to false, then it works fine by days with events.

Clicked (the day has been selected with color and opened the events): image Clicked again (the day events closed, but color still on): image

Is there a solution to remove the cssClass from days with events, when activeDayIsOpen set to true? Or have i missed something?

Thanks in advance!

matts-bot[bot] commented 2 years ago

This issue has been closed automatically as it did not follow the issue template, please open a new issue that follows the bug report or feature request template.

If you would like to submit a support issue or get a faster reply, please consider sponsoring me.

Thank you! ✌️