Summary
I recently deployed a multipage web app on the streamlit cloud and I don’t know why but the app keeps scrolling down every time I access a new page, hiding the main navigation menu (added with streamlit-option-menu).
When opening it locally with streamlit run main.py
, I do not experience this behaviour. However, with the deployed version, it keeps scrolling down every time I navigate to a new page (before and after).
I got the same result on both chrome and brave, so I am not sure this is related the browser. I think the videos below will be more descriptive.
I would like to know if there is a way to prevent that behaviour, as it provides a pretty bad user experience.
Steps to reproduce
The code is spread across multiple files and hosted
on a private GitHub repository so I can't really add it here.
Expected behavior:
When I open the app locally: video
Actual behavior:
What I get with the deployed version: video
Debug info
- Streamlit version: 1.19.0
- Streamlit-option-menu version: 0.3.2
- Python version: 3.11.1
- OS version: Windows 10