From b6d4f3d1cba502a084720288e9f9530dbcf14283 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 27 Dec 2023 00:39:46 +0100 Subject: [PATCH] allow null value in Text field --- src/components/fields/Text.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/fields/Text.vue b/src/components/fields/Text.vue index aa95bab..6bedd2b 100644 --- a/src/components/fields/Text.vue +++ b/src/components/fields/Text.vue @@ -20,7 +20,7 @@ const emit = defineEmits(['update:modelValue']); const props = defineProps({ modelValue: { required: true, - validator: (value) => typeof value === 'string', + validator: (value) => value === null || typeof value === 'string', }, field: { required: true,