chore: make prop optional in Flatpickr

This commit is contained in:
kolaente 2025-05-13 21:38:23 +02:00
parent 359b75feac
commit 22c1fa2be1
1 changed files with 3 additions and 4 deletions

View File

@ -67,11 +67,10 @@ import {computed, onBeforeUnmount, onMounted, ref, toRefs, useAttrs, watch, watc
const props = withDefaults(defineProps<{
modelValue: DateOption | DateOption[] | null,
/** https://flatpickr.js.org/options/ */
config: Options,
events: HookKey[],
disabled: boolean,
config?: Options,
events?: HookKey[],
disabled?: boolean,
}>(), {
modelValue: null,
config: () => ({
defaultDate: undefined,
wrap: false,