mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	fix(tree): Unexpected collapse after hoisting a note
This commit is contained in:
		
							parent
							
								
									0d605cbc74
								
							
						
					
					
						commit
						369eb7844d
					
				@ -1507,6 +1507,12 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
 | 
			
		||||
            );
 | 
			
		||||
 | 
			
		||||
            this.toggleHiddenNode(true); // hoisting will handle hidden note visibility
 | 
			
		||||
 | 
			
		||||
            // Automatically expand the hoisted note by default
 | 
			
		||||
            const node = this.getActiveNode();
 | 
			
		||||
            if (node.data.noteId === this.noteContext.hoistedNoteId){
 | 
			
		||||
                this.setExpanded(node.data.branchId, true);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user