Prevent chat from auto-scrolling when message is sent

Hello, I am using streamlit v1.29.0 to create a chatbot interface. I am experiencing an annoying issue, where the page goes to the top of the page and then at the bottom right after a user sends a message. Strangely, this does not happen always, but just sometimes.

Does anyone have an idea about how I could fix his?

Thank you in advance.

1 Like

Hey @Placido_Pellegriti,

This seems like a bug – I’d recommend sharing this GIF and a runnable code snippet here so our product and engineering teams can take a look.