mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	fix(mobile): toggling sidebar closes active note
This commit is contained in:
		
							parent
							
								
									857f33db08
								
							
						
					
					
						commit
						24a9487c6f
					
				| @ -11,13 +11,6 @@ export default class MobileScreenSwitcherExecutor extends Component | ||||
|     setActiveScreenCommand({screen}: CommandListenerData<"setActiveScreen">) { | ||||
|         if (screen !== this.activeScreen) { | ||||
|             this.activeScreen = screen; | ||||
| 
 | ||||
|             if (screen === 'tree') { | ||||
|                 const activeNoteContext = appContext.tabManager.getActiveContext(); | ||||
| 
 | ||||
|                 activeNoteContext.setEmpty(); | ||||
|             } | ||||
| 
 | ||||
|             this.triggerEvent('activeScreenChanged', {activeScreen: screen}); | ||||
|         } | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran