Skip to content

Commit f805760

Browse files
authored
Merge pull request #172 from PRO-Robotech/feature/dev
search filters
2 parents 4fcbaee + c660413 commit f805760

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@prorobotech/openapi-k8s-toolkit",
3-
"version": "0.0.1-alpha.121",
3+
"version": "0.0.1-alpha.122",
44
"description": "ProRobotech OpenAPI k8s tools",
55
"main": "dist/openapi-k8s-toolkit.cjs.js",
66
"module": "dist/openapi-k8s-toolkit.es.js",

src/components/molecules/Search/Search.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ export const Search: FC<TSearchProps> = ({ cluster, updateCurrentSearch }) => {
222222
mode="multiple"
223223
placeholder="Select"
224224
options={options}
225-
filterOption={filterSelectOptions}
225+
filterOption={(input, option) =>
226+
(option?.value || '').toString().toLowerCase().includes(input.toLowerCase())
227+
}
226228
allowClear
227229
showSearch
228230
tagRender={tagRender}

0 commit comments

Comments
 (0)