-
-
Notifications
You must be signed in to change notification settings - Fork 178
Description
Hi, thanks for this awesome project!
I am using multi dates together with a drop-down that allows a user to select multiple dates based on the drop down selection such as 1, 2, 3, 4, etc.
So if a user selects 2 on the drop down, they need to select 2 dates. However if they select 1, they can only select a single date, however I would like to allow them to "replace" the date in case of limit set to 1. Its annoying for the user to first deselect the date, then select a new date for the limit 1 case. For limit > 1, its understandable they first need to deselect as its unclear which date they want to replace.
Let me know if there is a built in way to do this, or a simple solution to get above use case to work.
I tried replacing the date-picker on the fly from non multi-dates to multi-dates, but this creates complexities with regard to passing arrays vs single dates.
<template>
<VueDatePicker v-model="date" :multi-dates="{ limit: 1 }" />
</template>
<script setup>
import { ref } from 'vue';
const date = ref();
</script>