From a4d0ca739675745229ae819ffd20baaa00aef447 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 10 Jul 2025 12:04:06 +0200 Subject: [PATCH] fix(FormField): improve `error` type with boolean Resolves #4496 --- 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 b62fd231..e8c719c5 100644 --- a/src/runtime/components/FormField.vue +++ b/src/runtime/components/FormField.vue @@ -18,7 +18,7 @@ export interface FormFieldProps { label?: string description?: string help?: string - error?: string | boolean + error?: boolean | string hint?: string /** * @defaultValue 'md' @@ -41,8 +41,8 @@ export interface FormFieldSlots { hint(props: { hint?: string }): any description(props: { description?: string }): any help(props: { help?: string }): any - error(props: { error?: string | boolean }): any - default(props: { error?: string | boolean }): any + error(props: { error?: boolean | string }): any + default(props: { error?: boolean | string }): any }