Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Layman’s question: How to avoid the page jumping back to the top in the Playground examples?


No worries! You can prevent the page from scrolling to the top by adding `mu-scroll="false"` to the link or form triggering the request. You can also disable it globally with `mu.init({ scroll: false })`.

In the Playground, the scroll-to-top behavior is intentiona, it's there to illustrate that feature.


Awesome. Thank you.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: