Skip to content

Commit

Permalink
Merge branch 'develop' into release/3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia authored Jul 7, 2021
2 parents 436dfc6 + 01f1c4c commit ad2bd2e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion assets/js/autosuggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@ function init() {
}
};

const debounceFetchResults = debounce(fetchResults, 200);

/**
* Callback for keyup in Autosuggest container.
*
Expand All @@ -679,7 +681,6 @@ function init() {
}

const input = event.target;
const debounceFetchResults = debounce(fetchResults, 200);
debounceFetchResults(input);
};

Expand Down
3 changes: 2 additions & 1 deletion assets/js/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ const handleUpDownEnter = (event) => {
results[selectedResultIndex]?.setAttribute('aria-selected', 'true');
};

const debounceFetchResults = debounce(fetchResults, 500);

/**
* Callback for keyup in Widget Search Comment container.
*
Expand All @@ -265,7 +267,6 @@ const handleKeyup = (event) => {
}

if (hasMinimumLength(target)) {
const debounceFetchResults = debounce(fetchResults, 500);
debounceFetchResults(target);
} else {
hideResultsBox(target);
Expand Down
2 changes: 1 addition & 1 deletion dist/js/autosuggest-script.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/comments-script.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ad2bd2e

Please sign in to comment.