Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

431
Views
Material UI ThemeProvider blocking Select and MenuItem response

The problem is definitely being caused by <ThemeProvider theme={theme}> because when I take it away it works. But I need ThemeProvide to make the font fit into the select box when on mobile.

Code:

    <Grid item xs={12} sm={6}>
        <FormControl className={classes.formControl}>
            <InputLabel id="demo-simple-select-label">Starter </InputLabel>
            <Select
               fullWidth
               labelId="demo-simple-select-label"
               id="demo-simple-select"
               name="starter"
               value={state.starter}
               onChange={handleInputChange}
               required>
                   <ThemeProvider theme={theme}>
                      <MenuItem value={starters[0]}>{starters[0]}</MenuItem>
                      <MenuItem value={starters[1]}>{starters[1]}</MenuItem>
                      <MenuItem value={starters[2]}>{starters[2]}</MenuItem>
                   </ThemeProvider>
            </Select>
         </FormControl>
    </Grid>

Currently looks like the below:

enter image description here

Need the Select / MenuItem to work like below:

enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!