allow null value in Text field

This commit is contained in:
philipp lang 2023-12-27 00:39:46 +01:00
parent d1c18f4e76
commit b6d4f3d1cb
1 changed files with 1 additions and 1 deletions

View File

@ -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,