Closed jowebdev closed 8 months ago
Describe the bug This configuration, doesn't work, no errors but I can't valid.
To Reproduce
<template> <VueDatePicker v-model="date" :min-date="minDate" :max-date="maxDate" :enableTimePicker="false" multi-dates month-picker /> </template> <script setup> import { ref } from 'vue'; import { addMonths, getMonth, getYear, subMonths } from 'date-fns'; const date = ref([]); // 2 months before and after the current date const minDate = computed(() => subMonths(new Date(getYear(new Date()), getMonth(new Date())), 7)); const maxDate = computed(() => subMonths(new Date(getYear(new Date()), getMonth(new Date())), 4)); </script>
Describe the bug This configuration, doesn't work, no errors but I can't valid.
To Reproduce