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

75
Views
Mui v5 - TreeView - Scroll so recent expanded is on top

The functionality I'm trying to achieve is that when I click on a TreeItem that has children and expand it, a scroll accures so that the expanded item is shown on top. How can I implement that?

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

0

You can make some component in App.(j|t)sx and there make this function

useEffect(() => {
    sctollOnTop();
});

and that will rescroll on every rout change... if you don't need to run it on scroll change just make some other function and reuse that on each open of item.

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!