Closed bartolije closed 6 years ago
The blackout function works like an array filter, it passes the date as the first argument and you return true if you want the date blacked out, false if you don't. You're always returning a truthy value, so you're blacking out everything.
Basically, that's what I need. But the fact is, while all is supposed to be blackout, I can still just 'uncheck' date that are already checked.
This part was supposed to be used as a "readonly" calendar, to show day of the year, but the user is able to click on selected day, which make them not-selected. (but he canno't check them again)
Uh, yeah, Kalendae is a date picker, not a calendar widget. That's not a use case it's written for.
If I choose to blackout an complete year, it seems I'm still able to un-select the current selected days. (but I can't enable them)