Skip to content

Build your personal knowledge base with Trilium Notes

fix(react/dialogs): missing autocomplete opts

Elian Dorance324586f8bd
diff --git a/apps/client/src/widgets/dialogs/include_note.tsx b/apps/client/src/widgets/dialogs/include_note.tsx
index 68b8c0544a..6f2323f2ef 100644
--- a/apps/client/src/widgets/dialogs/include_note.tsx
+++ b/apps/client/src/widgets/dialogs/include_note.tsx
@@ -36,15 +36,17 @@ function IncludeNoteDialogComponent({ textTypeWidget }: IncludeNoteDialogProps)
closeActiveDialog();
includeNote(suggestion.notePath, textTypeWidget);
}}
- footer={
- <Button text={t("include_note.button_include")} keyboardShortcut="Enter" />
- }
+ footer={<Button text={t("include_note.button_include")} keyboardShortcut="Enter" />}
>
<FormGroup label={t("include_note.label_note")}>
<NoteAutocomplete
placeholder={t("include_note.placeholder_search")}
onChange={setSuggestion}
inputRef={autoCompleteRef}
+ opts={{
+ hideGoToSelectedNoteButton: true,
+ allowCreatingNotes: true
+ }}
/>
</FormGroup>