From 7fbb6e8f700157238f8924ce95424d79a34b7543 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Mon, 7 Nov 2022 14:05:29 +0000 Subject: [PATCH] fix: Flatpickr types (#2647) Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2647 Co-authored-by: Dominik Pschenitschni Co-committed-by: Dominik Pschenitschni --- src/components/misc/flatpickr/Flatpickr.vue | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/components/misc/flatpickr/Flatpickr.vue b/src/components/misc/flatpickr/Flatpickr.vue index 5fc6ea44da..78f171d918 100644 --- a/src/components/misc/flatpickr/Flatpickr.vue +++ b/src/components/misc/flatpickr/Flatpickr.vue @@ -66,19 +66,8 @@ import {computed, onBeforeUnmount, onMounted, ref, toRefs, useAttrs, watch, watc const props = defineProps({ modelValue: { - type: [String, Number, Date, Array] as PropType, + type: [String, Number, Date, Array] as PropType, default: null, - required: true, - // validator(value) { - // return ( - // value === null || - // value instanceof Date || - // typeof value === 'string' || - // value instanceof String || - // value instanceof Array || - // typeof value === 'number' - // ); - // } }, // https://flatpickr.js.org/options/ config: {