Skip to content

Commit

Permalink
Merge pull request #3 from JordiDekker/bugfix/fix-infinite-loading
Browse files Browse the repository at this point in the history
Fix infinite searching in API when no results are found
  • Loading branch information
hdasdoria authored Mar 31, 2023
2 parents 9d374c2 + 03f4a02 commit 2945015
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Resources/private/js/product-variant-auto-complete.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ $.fn.extend({
});
element.dropdown('refresh');
element.dropdown('set selected', element.find('input.autocomplete').val().split(',').filter(String));
element.dropdown('show');
if (response.results.length > 0) {
element.dropdown('show');
}
},
},
onChange(addedValue, addedText, $addedChoice) {
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/public/shop-quick-shopping.min.js

Large diffs are not rendered by default.

0 comments on commit 2945015

Please sign in to comment.