Input: Fix paste (#5523)
This commit is contained in:
parent
be3051041a
commit
12050a2043
@ -46,7 +46,7 @@ const useClipboardPaste = (
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user