mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
parent
7140675181
commit
46ccd94514
@ -246,7 +246,10 @@ const NoteListComponent = (props: Props) => {
|
|||||||
event.dataTransfer.setDragImage(new Image(), 1, 1);
|
event.dataTransfer.setDragImage(new Image(), 1, 1);
|
||||||
event.dataTransfer.clearData();
|
event.dataTransfer.clearData();
|
||||||
event.dataTransfer.setData('text/x-jop-note-ids', JSON.stringify(noteIds));
|
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;
|
return true;
|
||||||
}, [props.parentFolderIsReadOnly, props.selectedNoteIds]);
|
}, [props.parentFolderIsReadOnly, props.selectedNoteIds]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user