From acdaf54a91e148d3bdb093537cdf61f329397643 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 27 Dec 2023 00:41:32 +0100 Subject: [PATCH] Fix Textarea validator --- src/components/fields/Textarea.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/fields/Textarea.vue b/src/components/fields/Textarea.vue index 623ab0a..e3b4ff8 100644 --- a/src/components/fields/Textarea.vue +++ b/src/components/fields/Textarea.vue @@ -19,12 +19,12 @@ 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, validator: (value) => - hasKeys(value, ['required', 'type', 'key', 'columns', 'name', 'default']) && + hasKeys(value, ['required', 'type', 'key', 'columns', 'name', 'default', 'rows']) && typeof value.required === 'boolean' && typeof value.key === 'string' && value.key.length > 0 &&