Merge branch 'pr/451'

This commit is contained in:
ItzCrazyKns 2024-11-17 19:48:56 +05:30
commit 03eed9693b
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ const EmptyChatMessageInput = ({
document.addEventListener('keydown', handleKeyDown); document.addEventListener('keydown', handleKeyDown);
inputRef.current?.focus();
return () => { return () => {
document.removeEventListener('keydown', handleKeyDown); document.removeEventListener('keydown', handleKeyDown);
}; };