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

90
Vistas
How to pass placement prop updated by flip from Popper to child Transition

I have a Popper component from mui v.5.6.2 I want to use the 'placement' prop of the popper, which is initially set to auto-start, to pass it to the child transition of such popper, only once it updates to either right-start or left-start, by setting those as the only values available. Trouble is, I haven't been able to make it await for the update from auto-start, since the child takes the value asychronously, causing every logic I've tried to fail.

Here's a small sample of what I'm saying

<Popper id={id} placement="auto-start" open={open} anchorEl={anchorEl} transition>
    {({ TransitionProps }) => (
      <Slide {...TransitionProps} timeout={350} direction={conditionalRightLeftFromPlacementValue}>
        <Box sx={{ border: 1, p: 1, bgcolor: 'background.paper' }}>
          The content of the Popper.
        </Box>
      </Slide>
    )}
  </Popper>
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