Closed VsevolodGolovanov closed 2 years ago
Hi, I need add custom filter function in MultiSelect control. I need to use Regex to filter the data. I tried do this on two ways.
const myFilterFunction = (event, options) => { let _filterValue = event.target.value; setFilterValue(_filterValue); options.filter(event); }
<InputText value={filterValue} ref={filterInputRef} onChange={(e) => myFilterFunction(e)} />
Is there any different way to use a custom filter method to filter data in MultiSelect control? I am grateful for the help. Regards,
I'm submitting a ... (check one with "x")
Codesandbox Case (Bug Reports)
Current behavior
Expected behavior Dropdown, ListBox and MultiSelect should support
filterMatchMode="custom"
with a customfilterFunction
. Like DataTable and TreeTable do.Minimal reproduction of the problem with instructions
Please tell us about your environment:
React version:
PrimeReact version: 4.2.2
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Language: [all | TypeScript X.X | ES6/7 | ES5]