Skip to content

Commit

Permalink
FOUR-17516 It is not possible to filter all sections from the search …
Browse files Browse the repository at this point in the history
…within the screen
  • Loading branch information
gproly committed Aug 2, 2024
1 parent fe5c579 commit e75f994
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/vue-form-builder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -648,9 +648,12 @@ export default {
const excludedLabels = [""];

const filtered = this.controls.filter((control) => {
return control.label
.toLowerCase()
.includes(this.filterQuery.toLowerCase());
let filter = this.filterQuery.toLowerCase();
let result = control.label.toLowerCase(filter).includes();
if (control.group.toLowerCase().includes(filter)) {
result = true;
}
return result;
});

return filtered;
Expand Down

0 comments on commit e75f994

Please sign in to comment.