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 &&