Skip to content

Commit

Permalink
fix: 🐛 Changed filter popover search to search full text not only the…
Browse files Browse the repository at this point in the history
… beginning (#612)
  • Loading branch information
EdwardBrunton authored Apr 30, 2024
1 parent c609603 commit 7e61bac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/filter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/workspace-filter",
"version": "4.0.1",
"version": "4.0.2",
"type": "module",
"sideEffects": false,
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const FilterGroupPopoverMenu = ({
const handleInput = (e) => setSearchText(e.target.value.toString().toLowerCase());

const getValuesMatchingSearchText = () =>
values.filter((s) => !searchText || s.value?.toString().toLowerCase().startsWith(searchText));
values.filter((s) => !searchText || s.value?.toString().toLowerCase().includes(searchText));

/**
* Sets the filter state to the values matching search and closes popover
Expand Down
2 changes: 1 addition & 1 deletion packages/workspace-fusion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/workspace-fusion",
"version": "9.0.1",
"version": "9.0.2",
"type": "module",
"sideEffects": false,
"license": "MIT",
Expand Down

0 comments on commit 7e61bac

Please sign in to comment.