Basically I'm just trying to change the background color on dropdown elements but I also would like to keep the default text showing there. Right now, if I don't set up background color explicitly on the Select component, text specified in InputLabel shows up just fine, but as soon as I add style={{backgroundColor: "rgb(232, 241, 250)"}} to the Select, this InputLabel text disappears. Why does it happen and what could be done to fix this?
Code Snippet:
<FormControl required fullWidth={true} size="small">
<InputLabel htmlFor="name" style={{color: "#000"}}>Тема обращения</InputLabel>
<Select
variant="filled"
style={{backgroundColor: "rgb(232, 241, 250)"}}
value={props.selectedTheme?.id || ''}
onChange={(e) => handleChange(e)}>
{props.themes.map(t => (<MenuItem key={t.id} value={t.id}>{t.name}</MenuItem>))}
</Select>
</FormControl>
Screenshot:
