Fix prop validation for checkboxes

This commit is contained in:
philipp lang 2024-06-14 00:29:00 +02:00
parent 99b3b1f0cb
commit 99811228f2
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ const props = defineProps({
field: {
required: true,
validator: (value) =>
hasKeys(value, [...globalFieldRules(), 'options']) &&
hasKeys(value, [...globalFieldRules(), 'options', 'min', 'max']) &&
typeof value.key === 'string' &&
value.key.length > 0 &&
typeof value.name === 'string' &&