-Local App
-Streamlit=1.22.0
-Python=3.8.18
I am trying to understand the behavior of the expanders.
I currently have an expander within the main section of my page (st,expander()) that contains a selectbox
Every time I expand it and then select an item in the box, the page refreshes and the expander collapses again.
However, I also have an expander in the sidebar (st.sidebar.expander()) that contains a selectbox. When i expand that one and select an item in the list the expander does not collapse. This is the behavior I desire, but I’m not sure what is driving that on the main section of the page.
Any ideas what would be causing the difference?