From 2cb4e65a9a81f408f66186adefa358785bf23f14 Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Sun, 12 Feb 2023 17:03:37 -0800 Subject: [PATCH] Focus the text input box after successfully attaching a file Fixes #6284 - does not focus immediately (so as to avoid stealing focus) and does not focus if the file browser is cancelled. --- ts/state/ducks/composer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ts/state/ducks/composer.ts b/ts/state/ducks/composer.ts index e2258618454e..c97e44a3f334 100644 --- a/ts/state/ducks/composer.ts +++ b/ts/state/ducks/composer.ts @@ -1031,6 +1031,7 @@ export function replaceAttachments( attachments: attachments.map(resolveDraftAttachmentOnDisk), }, }); + dispatch(setComposerFocus(conversationId)); }; }