mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	expand to note to be able to activate note
This commit is contained in:
		@@ -174,7 +174,11 @@ async function showTab(tabId) {
 | 
			
		||||
    if (newActiveTabContext && newActiveTabContext.notePath) {
 | 
			
		||||
        const newActiveNode = await treeService.getNodeFromPath(newActiveTabContext.notePath);
 | 
			
		||||
 | 
			
		||||
        if (newActiveNode && newActiveNode.isVisible()) {
 | 
			
		||||
        if (newActiveNode) {
 | 
			
		||||
            if (!newActiveNode.isVisible()) {
 | 
			
		||||
                await treeService.expandToNote(newActiveTabContext.notePath);
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            newActiveNode.setActive(true, {noEvents: true});
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user