mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-04-30 00:02:44 +00:00
fix(EmptyChatMessageInput): focus on mount
This commit is contained in:
@ -40,6 +40,8 @@ const EmptyChatMessageInput = ({
|
||||
|
||||
document.addEventListener('keydown', handleKeyDown);
|
||||
|
||||
inputRef.current?.focus();
|
||||
|
||||
return () => {
|
||||
document.removeEventListener('keydown', handleKeyDown);
|
||||
};
|
||||
|
Reference in New Issue
Block a user