This commit is contained in:
Narek Malkhasyan 2025-05-01 13:24:22 +02:00 committed by GitHub
commit 6af980ba03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,6 +34,7 @@ export const TTDDialogInput = ({
callbackRef.current?.(); callbackRef.current?.();
} }
}; };
textarea.focus();
textarea.addEventListener(EVENT.KEYDOWN, handleKeyDown); textarea.addEventListener(EVENT.KEYDOWN, handleKeyDown);
return () => { return () => {
textarea.removeEventListener(EVENT.KEYDOWN, handleKeyDown); textarea.removeEventListener(EVENT.KEYDOWN, handleKeyDown);
@ -47,7 +48,6 @@ export const TTDDialogInput = ({
onChange={onChange} onChange={onChange}
value={input} value={input}
placeholder={placeholder} placeholder={placeholder}
autoFocus
ref={ref} ref={ref}
/> />
); );