Desktop: Fixes: #8370: Fix note drag-drop into markdown editor (#8571)

pull/8580/head
Henry Heino 2023-07-29 08:32:52 -07:00 committed by GitHub
parent 7140675181
commit 46ccd94514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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]);