Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

133
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!