fix(EmptyChatMessageInput): focus on mount
This commit is contained in:
parent
1e99fe8d69
commit
7c01d2656e
|
@ -40,6 +40,8 @@ const EmptyChatMessageInput = ({
|
|||
|
||||
document.addEventListener('keydown', handleKeyDown);
|
||||
|
||||
inputRef.current?.focus();
|
||||
|
||||
return () => {
|
||||
document.removeEventListener('keydown', handleKeyDown);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue