mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-08 14:37:04 +02:00
ux: focus input after reply selection
This commit is contained in:
@@ -799,8 +799,10 @@ export function ChatViewer({
|
||||
// Handle reply button click
|
||||
const handleReply = useCallback((messageId: string) => {
|
||||
setReplyTo(messageId);
|
||||
// Focus the editor so user can start typing immediately
|
||||
editorRef.current?.focus();
|
||||
// Focus the editor after context menu closes (next frame)
|
||||
requestAnimationFrame(() => {
|
||||
editorRef.current?.focus();
|
||||
});
|
||||
}, []);
|
||||
|
||||
// Handle scroll to message (when clicking on reply preview)
|
||||
|
||||
Reference in New Issue
Block a user