Got rid of the adornment at the end.

This commit is contained in:
M M
2024-07-02 20:46:28 -07:00
parent c9ca639f23
commit 8453542777

View File

@@ -1,3 +1,4 @@
import * as React from 'react';
import TextField from '@mui/material/TextField';
import Autocomplete, { createFilterOptions } from '@mui/material/Autocomplete';
import { styled, useTheme } from '@mui/material/styles';
@@ -108,7 +109,14 @@ function Filter() {
getOptionLabel={(option) => option.title}
filterOptions={filterOptions}
sx={{ width: 300 }}
renderInput={(params) => <TextField {...params} label="Filter by status" />}
disableClearable // This disables the clearable (x) button
renderInput={(params) => (
<TextField
{...params}
label="Filter by Status"
InputProps={{ ...params.InputProps, endAdornment: null }} // Hides the end adornment (arrow icon)
/>
)}
/>
);
}