Skip to content

Commit

Permalink
Desktop: Fixes: #8370: Fix note drag-drop into markdown editor (#8571)
Browse files Browse the repository at this point in the history
  • Loading branch information
personalizedrefrigerator committed Jul 29, 2023
1 parent 7140675 commit 46ccd94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/app-desktop/gui/NoteList/NoteList.tsx
Expand Up @@ -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]);

Expand Down

0 comments on commit 46ccd94

Please sign in to comment.