mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	close hanging autocomplete on dialog close, fixes #3241
This commit is contained in:
		
							parent
							
								
									d5732d7731
								
							
						
					
					
						commit
						44b68326a0
					
				@ -245,6 +245,8 @@ async function openDialog($dialog, closeActDialog = true) {
 | 
			
		||||
    $dialog.modal();
 | 
			
		||||
 | 
			
		||||
    $dialog.on('hidden.bs.modal', () => {
 | 
			
		||||
        $(".aa-input").autocomplete("close");
 | 
			
		||||
 | 
			
		||||
        if (!glob.activeDialog || glob.activeDialog === $dialog) {
 | 
			
		||||
            focusSavedElement();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user