ankurk91 / vue-flatpickr-component

Vue.js component for Flatpickr datetime picker :calendar:
https://ankurk91.github.io/vue-flatpickr-component/
MIT License
965 stars 102 forks source link

Extra date not listed in `enable` is partially enabled #262

Closed ashiful-kyos closed 1 year ago

ashiful-kyos commented 1 year ago

I'm submitting a

[x] Bug report
[ ] Feature request
[ ] Other, please describe

Tell about your platform

Irrelevant. It's a visual issue. Even can be seen in the example of the documentation

Current behavior If dates are in the enable an extra date gets enabled and selectable in the date-time picker. The extra enable date seems to to be the date first enabled date + 1 month. Although this extra date is selectable but selecting that date gets the value of the first enabled date. For example say configuration has enable: ['2025-03-30'] the date time will show two enable dates 2025-03-30 and 2025-04-30. The extra enable date 2025-04-30 visually looks different but selectable.

Expected behavior Only listed date in enable should be selectable.

Minimal reproduction of the problem with instructions

ankurk91 commented 1 year ago

I am not responsible for flatpickr repo

repo such issues here https://github.com/flatpickr/flatpickr