Skip to content

Commit

Permalink
fix(searchbar): searchByItem to use current vl.items
Browse files Browse the repository at this point in the history
fixes #3948
  • Loading branch information
nolimits4web committed Oct 27, 2021
1 parent f1b75d5 commit 68e4a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/searchbar/searchbar-class.js
Expand Up @@ -577,7 +577,7 @@ class Searchbar extends FrameworkClass {
foundItems = sb.virtualList.params.searchAll(vlQuery, sb.virtualList.items) || [];
} else if (sb.virtualList.params.searchByItem) {
for (let i = 0; i < sb.virtualList.items.length; i += 1) {
if (sb.virtualList.params.searchByItem(vlQuery, sb.virtualList.params.items[i], i)) {
if (sb.virtualList.params.searchByItem(vlQuery, sb.virtualList.items[i], i)) {
foundItems.push(i);
}
}
Expand Down

0 comments on commit 68e4a09

Please sign in to comment.