mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08: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) {
 | 
			
		||||
            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}`);
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
@ -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()
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user