From 35192ba4dcd69f75552d4f22296b19ead02c1715 Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Fri, 8 Mar 2024 16:07:24 +0100 Subject: [PATCH] [open-formulieren/open-forms#3978] Fix validator of `date` and `datetime` --- src/formio/components/date.ts | 2 +- src/formio/components/datetime.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/formio/components/date.ts b/src/formio/components/date.ts index bab307f..915374b 100644 --- a/src/formio/components/date.ts +++ b/src/formio/components/date.ts @@ -8,7 +8,7 @@ import { PickerCustomOptions, } from '../dates'; -type Validator = 'required'; +type Validator = 'required' | 'minDate' | 'maxDate'; type TranslatableKeys = 'label' | 'description' | 'tooltip'; export type DateInputSchema = InputComponentSchema; diff --git a/src/formio/components/datetime.ts b/src/formio/components/datetime.ts index fee4264..d1adf1f 100644 --- a/src/formio/components/datetime.ts +++ b/src/formio/components/datetime.ts @@ -8,7 +8,7 @@ import { PickerCustomOptions, } from '../dates'; -type Validator = 'required'; +type Validator = 'required' | 'minDate' | 'maxDate'; type TranslatableKeys = 'label' | 'description' | 'tooltip'; export type DateTimeInputSchema = InputComponentSchema;