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

259
Views
The page automatically scrolls/moves after selecting an option from dropdown

I'm coding in rails and using Stimulus to connect views and javascript. For handling dropdowns, I'm using choices.js, which is an old library and not well supported atm. The issue that I currently have is, when I select an option from dropdowns, while part of dropdown is out of screen, the option is got selected and the page automatically scrolls down. It seems to me, when the half of the options goes off from the bottom of the screen and I'm selecting the top option the browser scrolls down to show/fit the whole dropdown for the next time! To be more clear, after scrolling if I click on dropdown again, the whole list is visible then. This automatic scrolling is not preferable for me. I tried to add scrolling back on choice event but it didn't work. I'm wondering if there is any css or javascript solution for it or not.

before selecting the option

after selecting the option the screen scrolls down and when I click on dropdown the whole dropdown's options can be seen

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I would advise you to go with alpine.js

This way you can use all basic ( even somewhat advanced ) interactions without too much code.

In combination with Tailwind CSS2 you will have a good combo.

about 4 years ago · Juan Pablo Isaza Report
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!