nathanreyes / v-calendar

An elegant calendar and datepicker plugin for Vue.
https://vcalendar.io
MIT License
4.38k stars 856 forks source link

Map through content classes instead of picking the last one #1430

Open tommycrumrine opened 9 months ago

tommycrumrine commented 9 months ago

Potential solution to https://github.com/nathanreyes/v-calendar/issues/1428

Instead of grabbing classes from the last object in the content array, map over them. Allows you to apply attributes to days that have internal content added instead of the internal values overriding the attributes we define.

I couldn't find existing test coverage for this area, but happy to add if I missed it.