From 9e30de968ef2292781ca6a665d82d10f2af76df3 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 18 Apr 2024 01:01:25 +0200 Subject: [PATCH] Add empty option --- src/components/fields/Group.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/fields/Group.vue b/src/components/fields/Group.vue index 6170392..f4510ab 100644 --- a/src/components/fields/Group.vue +++ b/src/components/fields/Group.vue @@ -9,7 +9,7 @@ > - + @@ -28,9 +28,9 @@ const props = defineProps({ field: { required: true, validator: (value) => - hasKeys(value, [...globalFieldRules(), 'required', 'parent_field', 'parent_group', 'empty_option', 'empty_option_value']) && + hasKeys(value, [...globalFieldRules(), 'required', 'parent_field', 'parent_group', 'has_empty_option', 'empty_option_value']) && typeof value.required === 'boolean' && - typeof value.empty_option === 'boolean' && + typeof value.has_empty_option === 'boolean' && typeof value.empty_option_value === 'string' && typeof value.key === 'string' && value.key.length > 0 &&