WickyNilliams / cally

Small, feature-rich calendar components
https://wicky.nillia.ms/cally/
MIT License
1.06k stars 12 forks source link

fix issue with empty range value, add tests #33

Closed WickyNilliams closed 2 months ago

WickyNilliams commented 2 months ago

there was a flaw in the logic that resulted in this:

<calendar-range value="">
  <calendar-month></calendar-month>
</calendar-range>

initially showing every date as selected. simple fix, and added some tests to catch future regressions