Got rid of the adornment at the end.
This commit is contained in:
1 parent
c9ca639f23
commit
8453542777
1 file changed
+9
-1
@@ -1,3 +1,4 @@
|
|||||||
|
import * as React from 'react';
|
||||||
import TextField from '@mui/material/TextField';
|
import TextField from '@mui/material/TextField';
|
||||||
import Autocomplete, { createFilterOptions } from '@mui/material/Autocomplete';
|
import Autocomplete, { createFilterOptions } from '@mui/material/Autocomplete';
|
||||||
import { styled, useTheme } from '@mui/material/styles';
|
import { styled, useTheme } from '@mui/material/styles';
|
||||||
@@ -108,7 +109,14 @@ function Filter() {
|
|||||||
getOptionLabel={(option) => option.title}
|
getOptionLabel={(option) => option.title}
|
||||||
filterOptions={filterOptions}
|
filterOptions={filterOptions}
|
||||||
sx={{ width: 300 }}
|
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)
|
||||||
|
/>
|
||||||
|
)}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user