skip to Main Content

Javascript – MUI Autocomplete resulting in an infinite loop of requests

I have this Autocomplete component <Autocomplete filterOptions={(x) => x} options={items} getOptionLabel={(option) => `${option.code} - ${option.name}` } onInputChange={(e, value) => { console.log(value); setAutoComplete(value); }} onChange={(e, value) => { //Change state of some other fields }} noOptionsText={false} renderInput={(params) => ( <TextField {...params}…

VIEW QUESTION

Javascript – material ui button icon is not appearing

the button is working but the icon inside it is not working: the button code: <Button color="secondary" aria-label="add an alarm"> <AlarmIcon></AlarmIcon> </Button> <Button variant="outlined" startIcon={<AlarmIcon />}> Delete </Button> the button imports: import Button from '@mui/material/Button'; import AlarmIcon from '@mui/material/Icon'; the…

VIEW QUESTION
Back To Top
Search