Add validator for text modelValue

This commit is contained in:
philipp lang 2024-06-28 12:45:43 +02:00
parent a9dea10a17
commit ab06c7de5d
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ const props = defineProps({
default: () => '',
},
modelValue: {
type: String,
validator: (v) => typeof v === 'string' || v === null,
required: true,
},
label: {