1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-03-26 21:12:59 +02:00

fix(desktop): not showing copy icon when note is dragged to another notebook

This commit is contained in:
palerdot 2023-03-15 15:21:03 +05:30
parent 6a3bf51084
commit f563ca1a33

View File

@ -241,6 +241,8 @@ 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));
// ref: https://github.com/laurent22/joplin/issues/7881
event.dataTransfer.effectAllowed = 'move';
};
const renderItem = useCallback((item: any, index: number) => {