Skip to content

Commit

Permalink
Hide autocomplete suggestions when adding expense via enter
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoBernardino committed Aug 17, 2023
1 parent 60394a2 commit 819b3bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -734,8 +734,8 @@ document.addEventListener('app-loaded', async () => {
function showAutocompleteSuggestions() {
const { value } = expenseDescriptionInput;

if (value.length <= 2) {
expenseDescriptionAutocompleteSuggestionsList.classList.add('hidden');
if (value.length <= 2 || isAddingExpense) {
hideAutocompleteSuggestions();
return;
}

Expand Down

0 comments on commit 819b3bb

Please sign in to comment.