fix(react/dialogs): missing autocomplete opts

This commit is contained in:
Elian Doran
2025-08-05 21:09:32 +03:00
parent 35bd210062
commit ce324586f8

View File

@@ -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>