From 2ffcbc9c5d0a0a7cfa8c96fa917b51be4ce90a9c Mon Sep 17 00:00:00 2001 From: Abdo Date: Tue, 24 Jun 2025 16:06:30 +0300 Subject: [PATCH] Focus field input on drop --- ts/routes/editor/rich-text-input/data-transfer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ts/routes/editor/rich-text-input/data-transfer.ts b/ts/routes/editor/rich-text-input/data-transfer.ts index 76cab078c..4c318f84b 100644 --- a/ts/routes/editor/rich-text-input/data-transfer.ts +++ b/ts/routes/editor/rich-text-input/data-transfer.ts @@ -374,6 +374,7 @@ export async function handlePaste(event: ClipboardEvent) { } export async function handleDrop(event: DragEvent) { + (event.target as HTMLElement).focus(); await handlePasteOrDrop(event); }