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

158
Vistas
How to use button to open selection field

https://codepen.io/Sparky1609/pen/LYObKWq

Drop down menu
The Arrow image in the image is inside my div class. I need handle function(onClick) so when it is clicked I need to display the Drop Down menu.
my react code:

    <Styled.Container w={width}>
      <Styled.Select required {...props}>
        {children}
      </Styled.Select>
      <div onClick={handleClick}>
        <FiChevronDown
          size={14}
          strokeWidth={4}
          color={Colors.black}
          width={14}
        />
      </div>
    </Styled.Container>

This is my style for Styled.Container

display: flex;
    position: relative;
    align-items: center;
    @media screen and (max-width: ${Breakpoints.xs}) {
      width: 100%;
    }
    div {
      position: absolute;
      right: 0;
      cursor: pointer;
    }
    svg {
      margin-left: 8px;
    }

I need handleclick function for my div tag. So when I click that my selection input field should 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