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

223
Views
Select Material UI - adding Ok button with overflow #29437

Im using with SELECT component of material ui and im trying to add OK button So it will be stuck in the scroll down(using overflow-y).

material ui version - v4 ES6 @material-ui/core/Select

<FormControl>
  <Select
    className={classes.select}
    multiple
    displayEmpty
    value={selectedOptions}
    onChange={handleChange}
    disableUnderline
    MenuProps={MenuProps}
  >
    {options.map(option => (
      <MenuItem
        classes={{ root: classes.selectedOption}}
        key={option}
        value={option}
      >
        <CustomCheckbox checked={selectedOptions.includes(option)} />
        <ListItemText classes={{ primary: classes.selectText }} primary={option} />
      </MenuItem>
    ))}
    <Button
      className={classes.button}
      onClick={applySelectedVendorsHandler}
    >
      Ok
    </Button>
  </Select>
</FormControl>

The apply button is on the bottom of the Select component as this way: enter image description here

but i want the button to be appeared all over the scrolling, I also define the maxHeight on MenuProp.

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!