fix: disabled native resize textarea when textarea autogrowing (#4326)
* fix: disabled native resize textarea when textarea autogrowing * fix: disabled auto resize on instruction field
This commit is contained in:
parent
56d1ffa136
commit
e8e5c8c5f4
@ -34,7 +34,11 @@ const TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(
|
||||
return (
|
||||
<div className="textarea__wrapper">
|
||||
<textarea
|
||||
className={twMerge('textarea', className)}
|
||||
className={twMerge(
|
||||
'textarea',
|
||||
className,
|
||||
autoResize && 'resize-none'
|
||||
)}
|
||||
ref={autoResize ? textareaRef : ref}
|
||||
{...props}
|
||||
/>
|
||||
|
||||
@ -257,7 +257,7 @@ const ThreadRightPanel = () => {
|
||||
id="assistant-instructions"
|
||||
placeholder="Eg. You are a helpful assistant."
|
||||
value={activeAssistant?.instructions ?? ''}
|
||||
autoResize
|
||||
// autoResize
|
||||
onChange={onAssistantInstructionChanged}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user