Within my Material-Table, I am utilizing this unique TextField
to craft a specialized filter cell for each column.
My goal is to employ the endAdornment
as a button that will reset the filter, but I am struggling with removing the current value.
filterComponent: ({ columnDef, onFilterChanged }) => (
<TextField
onChange={(e) => {
onFilterChanged(columnDef.tableData.id, e.target.value);
}}
InputProps={{
startAdornment: (
<InputAdornment position="start">
<FilterList />
</InputAdornment>
),
endAdornment: (
<InputAdornment position="end">
<IconButton>
<Clear className={classes.endAdornment} />
</IconButton>
</InputAdornment>
),
}}
/>
),