Closed pukanszkypeter closed 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! ✌️
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 thecssClass
, 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): Clicked again (the day events closed, but color still on):
Is there a solution to remove the
cssClass
from days with events, whenactiveDayIsOpen
set to true? Or have i missed something?Thanks in advance!