fix glitches on drag & drop, fixes #1587

This commit is contained in:
zadam 2021-01-28 21:19:01 +01:00
parent 2dc742f5b8
commit 810fd9e819
2 changed files with 2 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class TreeCache {
for (const note of resp.notes) {
if (note.type === 'search') {
const searchResultNoteIds = await server.get('search-note/' + note.noteId);
console.log("searchResultNoteIds", searchResultNoteIds);
if (!Array.isArray(searchResultNoteIds)) {
throw new Error(`Search note ${note.noteId} failed: ${searchResultNoteIds}`);
}

View File

@ -395,6 +395,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
},
dnd5: {
autoExpandMS: 600,
preventLazyParents: false,
dragStart: (node, data) => {
// don't allow dragging root node
if (node.data.noteId === hoistedNoteService.getHoistedNoteId()