Skip to content

Commit

Permalink
fix: reload tag results after adding tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonella Sgarlatta committed May 26, 2021
1 parent 9aa2021 commit f039870
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/components/AutocompleteTagInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const AutocompleteTagInput: FunctionalComponent<Props> = ({
setLockCloseOnBlur(true);
await appState.notes.addTagToActiveNote(tag);
inputRef.current.focus();
setTagResults(getActiveNoteTagResults(searchQuery));
setLockCloseOnBlur(false);
};

Expand Down

0 comments on commit f039870

Please sign in to comment.