fix(ai-toolbar): keep textarea paste on component path

This commit is contained in:
old4ever committed 2026-04-22 23:31:46 -04:00
1 parent b048e34891
commit c37c39a0ba
2 files changed
+20

No files matched your search

+2
View File
@@ -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;
};