Commit 09a08ad3 authored by Joel's avatar Joel

Merge branch 'feat/support-claude' into deploy/dev

parents 16c24dcc b7c67f54
...@@ -19,6 +19,7 @@ const AutoHeightTextarea = forwardRef( ...@@ -19,6 +19,7 @@ const AutoHeightTextarea = forwardRef(
{ value, onChange, placeholder, className, minHeight = 36, maxHeight = 96, autoFocus, controlFocus, onKeyDown, onKeyUp }: IProps, { value, onChange, placeholder, className, minHeight = 36, maxHeight = 96, autoFocus, controlFocus, onKeyDown, onKeyUp }: IProps,
outerRef: any, outerRef: any,
) => { ) => {
// eslint-disable-next-line react-hooks/rules-of-hooks
const ref = outerRef || useRef<HTMLTextAreaElement>(null) const ref = outerRef || useRef<HTMLTextAreaElement>(null)
const doFocus = () => { const doFocus = () => {
...@@ -60,7 +61,7 @@ const AutoHeightTextarea = forwardRef( ...@@ -60,7 +61,7 @@ const AutoHeightTextarea = forwardRef(
<textarea <textarea
ref={ref} ref={ref}
autoFocus={autoFocus} autoFocus={autoFocus}
className={cn(className, 'absolute inset-0 resize-none overflow-hidden')} className={cn(className, 'absolute inset-0 resize-none overflow-auto')}
placeholder={placeholder} placeholder={placeholder}
onChange={onChange} onChange={onChange}
onKeyDown={onKeyDown} onKeyDown={onKeyDown}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment