fix: autoHeightTextarea dimensions in Firefox (#4891)

This commit is contained in:
Nam Vu 2024-06-12 07:24:58 +07:00 committed by GitHub
parent 5f104bab57
commit 3520d35f38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,7 @@ const AutoHeightTextarea = forwardRef<HTMLTextAreaElement, AutoHeightTextareaPro
<textarea <textarea
ref={ref} ref={ref}
placeholder={placeholder} placeholder={placeholder}
className={cn(className, 'disabled:bg-transparent absolute inset-0 outline-none border-none appearance-none resize-none')} className={cn(className, 'disabled:bg-transparent absolute inset-0 outline-none border-none appearance-none resize-none w-full h-full')}
value={value} value={value}
disabled={disabled} disabled={disabled}
{...rest} {...rest}