nathanreyes / v-calendar

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

Falsey keys for attributes don't render colors correctly #1393

Open wparad opened 8 months ago

wparad commented 8 months ago

If you set the key of the attribute for a date range to be 0, it doesn't render the specified colors.

Example:

const attributes = [
{ key: 0, highlight: 'red', dates: new Date(Date.now() - 86400000) },
{ key1: highlight: 'blue', dates: new Date() }
}];

image

Correct: image