Skip to content

Commit

Permalink
Add search term to autosuggest result filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakePT committed Mar 24, 2021
1 parent f8ec633 commit ab72184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/autosuggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function updateAutosuggestBox(options, input) {
</li>`;

if (typeof window.epAutosuggestItemHTMLFilter !== 'undefined') {
itemHTML = window.epAutosuggestItemHTMLFilter(itemHTML, options[i], i);
itemHTML = window.epAutosuggestItemHTMLFilter(itemHTML, options[i], i, value);
}

itemString += itemHTML;
Expand Down

0 comments on commit ab72184

Please sign in to comment.