From f6bac84273faa2f562e65153e07e521f2e343a37 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 18 Apr 2024 00:43:34 +0200 Subject: [PATCH] Update empty option in group --- src/components/fields/Group.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/fields/Group.vue b/src/components/fields/Group.vue index d540687..6170392 100644 --- a/src/components/fields/Group.vue +++ b/src/components/fields/Group.vue @@ -9,6 +9,7 @@ > + @@ -27,8 +28,10 @@ const props = defineProps({ field: { required: true, validator: (value) => - hasKeys(value, [...globalFieldRules(), 'required', 'parent_field', 'parent_group']) && + hasKeys(value, [...globalFieldRules(), 'required', 'parent_field', 'parent_group', 'empty_option', 'empty_option_value']) && typeof value.required === 'boolean' && + typeof value.empty_option === 'boolean' && + typeof value.empty_option_value === 'string' && typeof value.key === 'string' && value.key.length > 0 && typeof value.name === 'string' &&