fix: reload tag results after adding tag

This commit is contained in:
Antonella Sgarlatta
2021-05-26 18:12:52 -03:00
parent 9aa2021e11
commit f03987016f

View File

@@ -65,6 +65,7 @@ export const AutocompleteTagInput: FunctionalComponent<Props> = ({
setLockCloseOnBlur(true);
await appState.notes.addTagToActiveNote(tag);
inputRef.current.focus();
setTagResults(getActiveNoteTagResults(searchQuery));
setLockCloseOnBlur(false);
};