Fixed! Changed overflow-hidden to overflow-y-auto so users can scroll vertically when the textarea content exceeds the maximum height limit. (#211)
This commit is contained in:
committed by
GitHub
parent
c033963fd4
commit
b726f8ca05
@@ -55,7 +55,7 @@ const AutoExpandingTextarea = React.forwardRef<
|
||||
return (
|
||||
<textarea
|
||||
className={cn(
|
||||
'flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm resize-none overflow-hidden',
|
||||
'flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm resize-none overflow-y-auto',
|
||||
className
|
||||
)}
|
||||
ref={textareaRef}
|
||||
|
||||
Reference in New Issue
Block a user