Input: Fix paste (#5523)

This commit is contained in:
zubiden 2025-01-21 20:09:53 +01:00 committed by Alexander Zinchuk
parent be3051041a
commit 12050a2043

View File

@ -46,7 +46,7 @@ const useClipboardPaste = (
} }
const input = (e.target as HTMLElement)?.closest(CLOSEST_CONTENT_EDITABLE_SELECTOR); const input = (e.target as HTMLElement)?.closest(CLOSEST_CONTENT_EDITABLE_SELECTOR);
if (input && !VALID_TARGET_IDS.has(input.id)) { if (!input || !VALID_TARGET_IDS.has(input.id)) {
return; return;
} }