feat: focus input after selecting tag

This commit is contained in:
Antonella Sgarlatta
2021-06-03 20:37:02 -03:00
parent ff0270f1ac
commit 622cca770f

View File

@@ -19,6 +19,7 @@ export const AutocompleteTagResult = observer(
const onTagOptionClick = async (tag: SNTag) => { const onTagOptionClick = async (tag: SNTag) => {
await appState.noteTags.addTagToActiveNote(tag); await appState.noteTags.addTagToActiveNote(tag);
appState.noteTags.clearAutocompleteSearch(); appState.noteTags.clearAutocompleteSearch();
appState.noteTags.setAutocompleteInputFocused(true);
}; };
const onKeyDown = (event: KeyboardEvent) => { const onKeyDown = (event: KeyboardEvent) => {