You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is it possible to keep disabled date like in vue2-datepicker?
currently datepicker will set empty if the date is disabled, i want to set default date even it is disabled.
<script setup>
import { ref } from "vue";
import DatePicker from "vue-datepicker-next";
const date = ref("2023-03-01");
function notBeforeToday(date) {
return date < new Date(new Date().setHours(0, 0, 0, 0));
}
</script>
<template>
<date-picker
v-model:value="date"
:first-day-of-week="1"
:clearable="false"
:editable="false"
:disabled-date="notBeforeToday"
type="date"
format="MMM, DD YYYY"
valueType="YYYY-MM-DD"
></date-picker>
</template>
thank you.
The text was updated successfully, but these errors were encountered:
is it possible to keep disabled date like in vue2-datepicker?
currently datepicker will set empty if the date is disabled, i want to set default date even it is disabled.
thank you.
The text was updated successfully, but these errors were encountered: