Skip to content

Commit

Permalink
compute this.searchText.toLowerCase()
Browse files Browse the repository at this point in the history
  • Loading branch information
LrxGaelle committed Oct 5, 2023
1 parent 0b4e164 commit dcca236
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/BIMDataComponents/BIMDataSelect/BIMDataSelectMulti.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ export default {
if (this.searchText === "") {
return this.options;
} else {
const lowerCaseSearchText = this.searchText.toLowerCase();
return this.options.filter(option => {
return option.toLowerCase().includes(this.searchText.toLowerCase());
return option.toLowerCase().includes(lowerCaseSearchText);
});
}
},
Expand Down
3 changes: 2 additions & 1 deletion src/BIMDataComponents/BIMDataSelect/BIMDataSelectSingle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ export default {
if (this.searchText === "") {
return this.options;
} else {
const lowerCaseSearchText = this.searchText.toLowerCase();
return this.options.filter(option => {
return option.toLowerCase().includes(this.searchText.toLowerCase());
return option.toLowerCase().includes(lowerCaseSearchText);
});
}
},
Expand Down

0 comments on commit dcca236

Please sign in to comment.