Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

134
Visualizações
scrollIntoView will not execute a second time but only on refresh or reload of DOM

I have a basic app. In it the app routes users dependent on app state and shows/hides the pages based on user interaction and app state.

I have a set of questions on some pages and on opening the page the code auto-scrolls the user to the next question on answer selection. All good there.

When I return to the same page, following the routes within the application, this interaction does not take place the second time round.

The questions are outputted via PHP. I'm thinking to use PHP to also generate the JS code to ensure execution, but ideally not as app state needs to be managed on the front end.

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda