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