From 46ccd945142d2000867104979074427aeef5bf73 Mon Sep 17 00:00:00 2001 From: Henry Heino <46334387+personalizedrefrigerator@users.noreply.github.com> Date: Sat, 29 Jul 2023 08:32:52 -0700 Subject: [PATCH] Desktop: Fixes: #8370: Fix note drag-drop into markdown editor (#8571) --- packages/app-desktop/gui/NoteList/NoteList.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/app-desktop/gui/NoteList/NoteList.tsx b/packages/app-desktop/gui/NoteList/NoteList.tsx index 5c3c1fa17..e7813b235 100644 --- a/packages/app-desktop/gui/NoteList/NoteList.tsx +++ b/packages/app-desktop/gui/NoteList/NoteList.tsx @@ -246,7 +246,10 @@ const NoteListComponent = (props: Props) => { event.dataTransfer.setDragImage(new Image(), 1, 1); event.dataTransfer.clearData(); event.dataTransfer.setData('text/x-jop-note-ids', JSON.stringify(noteIds)); - event.dataTransfer.effectAllowed = 'move'; + // While setting + // event.dataTransfer.effectAllowed = 'move'; + // causes the drag cursor to have a "move", rather than an "add", icon, + // this breaks note drag and drop into the markdown editor. return true; }, [props.parentFolderIsReadOnly, props.selectedNoteIds]);