fix(ai-toolbar): keep textarea paste on component path
This commit is contained in:
@@ -241,6 +241,8 @@ export const AIToolbar = ({
|
||||
// Mark that the synchronous paste event handled images so keydown
|
||||
// doesn't double-fire
|
||||
const handlePasteHandled = (e: ClipboardEvent) => {
|
||||
if (isEditableTarget(e.target)) return;
|
||||
|
||||
const images = extractAllImagesFromClipboard(e.clipboardData ?? null);
|
||||
if (images.length > 0) pasteHandledByEvent = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user