How to prevent scrolling down the page when using st.chat_input?

Hi everyone!

How can I prevent automatic scrolling down after page load when using st.chat_input?
It’s important to me that after loading the page, the beginning of the page is visible. When I remove chat_input the page loads normally and doesn’t scroll me down. I will be grateful for tips.

Can you share an example script that shows this behavior?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.