Merge branch 'develop' into feature/account-menu-react

This commit is contained in:
Antonella Sgarlatta
2021-06-10 12:10:24 -03:00
3 changed files with 9 additions and 7 deletions

View File

@@ -47,7 +47,9 @@ export const AutocompleteTagInput = observer(({ appState }: Props) => {
const onFormSubmit = async (event: Event) => {
event.preventDefault();
await appState.noteTags.createAndAddNewTag();
if (autocompleteSearchQuery !== '') {
await appState.noteTags.createAndAddNewTag();
}
};
const onKeyDown = (event: KeyboardEvent) => {