mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-07-24 07:45:57 +02:00
Focus sub-notebook input from context menu (#150)
Focus the sub-notebook name field after choosing New Sub-notebook from a notebook context menu. Validation: pnpm build Reviewed-on: https://codeberg.org/ArkHost/HelixNotes/pulls/150
This commit is contained in:
@@ -257,7 +257,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
function startNewSubNotebook(nb: NotebookEntry) {
|
||||
async function startNewSubNotebook(nb: NotebookEntry) {
|
||||
contextMenu = null;
|
||||
newNotebookParent = nb;
|
||||
newNotebookName = '';
|
||||
@@ -266,6 +266,7 @@
|
||||
if ($collapsedNotebooks.includes(nb.path)) {
|
||||
$collapsedNotebooks = $collapsedNotebooks.filter(p => p !== nb.path);
|
||||
}
|
||||
await focusNewNotebookInput();
|
||||
}
|
||||
|
||||
async function handleRename(nb: NotebookEntry) {
|
||||
|
||||
Reference in New Issue
Block a user