mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	return focus to the previously focused element after closing the dialog, fixes #861
This commit is contained in:
		| @@ -11,13 +11,9 @@ const $linkTitle = $("#link-title"); | ||||
| const $addLinkTitleFormGroup = $("#add-link-title-form-group"); | ||||
|  | ||||
| export async function showDialog() { | ||||
|     utils.closeActiveDialog(); | ||||
|  | ||||
|     $addLinkTitleFormGroup.toggle(!hasSelection()); | ||||
|  | ||||
|     glob.activeDialog = $dialog; | ||||
|  | ||||
|     $dialog.modal(); | ||||
|     utils.openDialog($dialog); | ||||
|  | ||||
|     $autoComplete.val('').trigger('focus'); | ||||
|     $linkTitle.val(''); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user