gregnb / gregnb/mui-datatables
filterOptions display not working
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 906
- PR merge metrics
- No merged PRs in 30d
Description
## Expected Behavior
When using filterOptions.display to alter my filter dropdown list, I expect my filter options to be changed accordingly.
## Current Behavior
Currently, despite using filterOptions.display, the filter list is not updated and stays the same.
My code currently is the following:
```
{
label: 'Customer',
name: 'customer',
options: {
// @ts-ignore
customFilterListRender(customer: any) {
return customer.organisation;
},
filterOptions: {
display: () => test,
},
customBodyRender(customer: any) {
if (!!customer) {
return {customer.organisation};
} else {
return null;
}
},
},
},
```
The items in this column are objects in the shape of `{id: string; organisation: string}`
## Your Environment
| Tech | Version |
|--------------|---------|
| Material-UI | 4.4.0 |
| MUI-datatables | 2.11.1 |
| React | 16.9.0 |
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.