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

110
Vistas
Prevent dropdown from closing when clicking checkbox-label inside dropdown of react-select

I'm trying to put a couple of checkboxes inside the dropdown of React-select to filter the options of the dropdown.

I've seen this: React-Select custom input inside MenuList and tried to replicate this: https://codesandbox.io/embed/m75wlyx3oy. It seems like the prop onMenuInputFocus is the key here. But this prop doesn't exist anymore in the version I'm using(5.2.1^).

I am able to click the checkbox itself without closing the dropdown by stopping the event propagation. But that doesn't seem to work when clicking the label.

Does anyone know of an alternative to onMenuInputFocus? Or another way to keep the dropdown open?

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