mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
focus input on shown modal in branch prefix dialog, fixes #560
This commit is contained in:
@@ -21,7 +21,7 @@ async function showDialog() {
|
||||
branchId = currentNode.data.branchId;
|
||||
const branch = await treeCache.getBranch(branchId);
|
||||
|
||||
$treePrefixInput.val(branch.prefix).focus();
|
||||
$treePrefixInput.val(branch.prefix);
|
||||
|
||||
const noteTitle = await treeUtils.getNoteTitle(currentNode.data.noteId);
|
||||
|
||||
@@ -46,6 +46,8 @@ $form.submit(() => {
|
||||
return false;
|
||||
});
|
||||
|
||||
$dialog.on('shown.bs.modal', () => $treePrefixInput.focus());
|
||||
|
||||
export default {
|
||||
showDialog
|
||||
};
|
||||
Reference in New Issue
Block a user