mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
fix(react/dialogs): missing autocomplete opts
This commit is contained in:
@@ -36,15 +36,17 @@ function IncludeNoteDialogComponent({ textTypeWidget }: IncludeNoteDialogProps)
|
|||||||
closeActiveDialog();
|
closeActiveDialog();
|
||||||
includeNote(suggestion.notePath, textTypeWidget);
|
includeNote(suggestion.notePath, textTypeWidget);
|
||||||
}}
|
}}
|
||||||
footer={
|
footer={<Button text={t("include_note.button_include")} keyboardShortcut="Enter" />}
|
||||||
<Button text={t("include_note.button_include")} keyboardShortcut="Enter" />
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
<FormGroup label={t("include_note.label_note")}>
|
<FormGroup label={t("include_note.label_note")}>
|
||||||
<NoteAutocomplete
|
<NoteAutocomplete
|
||||||
placeholder={t("include_note.placeholder_search")}
|
placeholder={t("include_note.placeholder_search")}
|
||||||
onChange={setSuggestion}
|
onChange={setSuggestion}
|
||||||
inputRef={autoCompleteRef}
|
inputRef={autoCompleteRef}
|
||||||
|
opts={{
|
||||||
|
hideGoToSelectedNoteButton: true,
|
||||||
|
allowCreatingNotes: true
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user