Open roman3000 opened 1 year ago
try setting end: undefined
Hi, thanks for the suggestion but it didn't work for me.
This is the only thing I could do to get close to what I wanted.
<VDatePicker
:key="datePickerKey"
is-expanded
:columns="columns"
:expanded="true"
v-model.range="range"
:min-date="minDate"
:firstDayOfWeek="2"
@click="setDates"
>
</VDatePicker>
const datePickerKey = ref(0); const range = ref({ start: null, end: null });
function setDates(params) { range.value.start = minDate.value; range.value.end = new Date(params.target.ariaLabel); datePickerKey.value++; }
Hi, does anyone know how I can set the start date of a range automatically, and have the user only input the end date? I have tried const range = ref({ start: new Date(2023, 1, 24), end: null }); but that's not doing anything.
Has anyone had a similar issue? Thanks