From efe00ff6b92dbb93f2e13a014af9dc8733c8d72f Mon Sep 17 00:00:00 2001 From: Melnyk Mykhailo Date: Sun, 4 Feb 2024 18:24:16 +0200 Subject: [PATCH] fix pointer event set to none for input span and absolute error position for form label --- src/components/ui/form.tsx | 3 ++- src/components/ui/input.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/ui/form.tsx b/src/components/ui/form.tsx index 80a1249..5a50cd4 100644 --- a/src/components/ui/form.tsx +++ b/src/components/ui/form.tsx @@ -114,6 +114,7 @@ const FormControl = React.forwardRef< : `${formDescriptionId} ${formMessageId}` } aria-invalid={!!error} + className="relative" id={formItemId} ref={ref} {...props} @@ -152,7 +153,7 @@ const FormMessage = React.forwardRef< return (

( type={type} {...props} /> - + {placeholder}