Stopping auto scrolling to the bottom of st.expander widget in st.chat_input

In the st.chat_input widget, I am displaying an st.expander widget that has a lot of text in it. The application automatically scrolls to the bottom of the expander once it is opened, making it more difficult to navigate and to scroll back up. Would anyone know a css hack to fix it or would have any suggestions in general on how to tackle this?