From a23c3140dfef9bead862a4296a8cbfb05868a00e Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 1 Aug 2024 11:51:07 +0200 Subject: [PATCH] fix(FormField): allow `error` prop as boolean --- src/runtime/components/FormField.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/components/FormField.vue b/src/runtime/components/FormField.vue index 3cfff2c6..f834d95b 100644 --- a/src/runtime/components/FormField.vue +++ b/src/runtime/components/FormField.vue @@ -15,7 +15,7 @@ export interface FormFieldProps { label?: string description?: string help?: string - error?: string + error?: string | boolean hint?: string size?: FormFieldVariants['size'] required?: boolean @@ -29,9 +29,9 @@ export interface FormFieldSlots { label(props: { label?: string }): any hint(props: { hint?: string }): any description(props: { description?: string }): any - error(props: { error?: string }): any help(props: { help?: string }): any - default(props: { error?: string }): any + error(props: { error?: string | boolean }): any + default(props: { error?: string | boolean }): any }