Material-table: Disable filter icon

Created on 13 Jun 2019  路  3Comments  路  Source: mbrn/material-table

I am trying to disable an icon that is displayed in the filters field. Right now I am just setting non existing tag in _icons.Filter_ overrides. It's working, but also giving warning in the console.

Is this any other supported method to disable such an icon? (except for component overriding which I imagine would be overkill for this use...)

enhancement wontfix

Most helpful comment

Hi, any updates on this? Currently I am overriding with

icons = {{ Filter: React.Fragment }}

but this leaves an 8px wide MuiInputAdornment-root MuiInputAdornment-positionStart in front of the input field - not ideal.

image

All 3 comments

I will add a flag to options for this case.

Hi, any updates on this? Currently I am overriding with

icons = {{ Filter: React.Fragment }}

but this leaves an 8px wide MuiInputAdornment-root MuiInputAdornment-positionStart in front of the input field - not ideal.

image

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

Was this page helpful?
0 / 5 - 0 ratings