Can't put the enable in Days Flatpickr the calendar?

Use a plugin https://flatpickr.js.org/ in your project, the challenge trail. need to bring all incl. days.. I know what's in config object is `enable` where callback accepts, in principle, deduce as needed, but for some reason in the Room. not displayed .. he nazyaetsya 0
config calendar

configs: {
 locale: Russian,
 enable: [
 date => {
 return this.enableDays.find(i => Number(i) === date.getDay())
}
],
 // minDate: 'today',
 dateFormat: "j F - l Y"
 }


Output the date using props
<app-datepicker :enableDays="[2, 4, 0]" v-model="order.date" placeholder="25-01-1990" border />

Sun. disabled
5c9e5ca453796539486628.png
March 19th 20 at 09:14
1 answer
March 19th 20 at 09:16
Solution
The problem is solved it was necessary to Supplement the terms of
this.enableDays.find(i => Number(i) === date.getDay() || date.getDay() === 0)

Find more questions by tags Vue.jsJavaScript