Skip to content

Commit

Permalink
fix: disabled native resize textarea when textarea autogrowing (#4326)
Browse files Browse the repository at this point in the history
* fix: disabled native resize textarea when textarea autogrowing

* fix: disabled auto resize on instruction field
  • Loading branch information
urmauur authored Dec 23, 2024
1 parent 56d1ffa commit e8e5c8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion joi/src/core/TextArea/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
Expand Down
2 changes: 1 addition & 1 deletion web/screens/Thread/ThreadRightPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ const ThreadRightPanel = () => {
id="assistant-instructions"
placeholder="Eg. You are a helpful assistant."
value={activeAssistant?.instructions ?? ''}
autoResize
// autoResize
onChange={onAssistantInstructionChanged}
/>
</div>
Expand Down

0 comments on commit e8e5c8c

Please sign in to comment.