Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

225
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda