- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 170
 
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When using year-picker together with maxRange the selection does not respect the set maxRange.
To Reproduce
https://stackblitz.com/edit/vuepic-vue-datepicker-ksyengch?file=src%2Fcomponents%2FPlayground.vue
Code:
<template>
  <div>
    <Datepicker v-model="date" :range="{ maxRange: 730 }" year-picker />
    {{ date }}
  </div>
</template>
<script setup>
import { ref } from 'vue';
import Datepicker from '@vuepic/vue-datepicker';
import '@vuepic/vue-datepicker/dist/main.css';
const date = ref();
</script>`
Expected behavior
The maxRange is not available.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
