@sumaris-net/ngx-components 2.6.23-beta7 → 2.6.23-beta9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1171,7 +1171,7 @@ function suggestFromArray(items, value, opts) {
1171
1171
  let filteredItems = items;
1172
1172
  if (isNotNilOrBlank(value)) {
1173
1173
  // If wildcard, search using regexp
1174
- if (value.indexOf('*') !== -1) {
1174
+ if (opts?.anySearch || value.indexOf('*') !== -1) {
1175
1175
  value = value.replace(/[*]+/g, '.*');
1176
1176
  filteredItems = filteredItems.filter(v => keys.findIndex(key => matchUpperCase(getPropertyByPathAsString(v, key), value)) !== -1);
1177
1177
  }