mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix glitches on drag & drop, fixes #1587
This commit is contained in:
parent
2dc742f5b8
commit
810fd9e819
@ -167,7 +167,7 @@ class TreeCache {
|
|||||||
for (const note of resp.notes) {
|
for (const note of resp.notes) {
|
||||||
if (note.type === 'search') {
|
if (note.type === 'search') {
|
||||||
const searchResultNoteIds = await server.get('search-note/' + note.noteId);
|
const searchResultNoteIds = await server.get('search-note/' + note.noteId);
|
||||||
console.log("searchResultNoteIds", searchResultNoteIds);
|
|
||||||
if (!Array.isArray(searchResultNoteIds)) {
|
if (!Array.isArray(searchResultNoteIds)) {
|
||||||
throw new Error(`Search note ${note.noteId} failed: ${searchResultNoteIds}`);
|
throw new Error(`Search note ${note.noteId} failed: ${searchResultNoteIds}`);
|
||||||
}
|
}
|
||||||
|
@ -395,6 +395,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
|||||||
},
|
},
|
||||||
dnd5: {
|
dnd5: {
|
||||||
autoExpandMS: 600,
|
autoExpandMS: 600,
|
||||||
|
preventLazyParents: false,
|
||||||
dragStart: (node, data) => {
|
dragStart: (node, data) => {
|
||||||
// don't allow dragging root node
|
// don't allow dragging root node
|
||||||
if (node.data.noteId === hoistedNoteService.getHoistedNoteId()
|
if (node.data.noteId === hoistedNoteService.getHoistedNoteId()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user