Filter power search term options

Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48558180

fbshipit-source-id: 311d5ed1859d0a31f85942772a956c46f58be46e
This commit is contained in:
Andrey Goncharov
2023-08-30 07:26:35 -07:00
committed by Facebook GitHub Bot
parent 44c3f53905
commit 0633658cee

View File

@@ -154,7 +154,11 @@ export const PowerSearch: React.FC<PowerSearchProps> = ({config}) => {
}, },
]); ]);
}} }}
value={''} filterOption={(inputValue, option) => {
return !!option?.label
.toLowerCase()
.includes(inputValue.toLowerCase());
}}
/> />
</div> </div>
); );