Hi guys,
I’m encountering a problem with my sidebar content. It appears on every tab click, but I only want it to appear when the user clicks on tab2. Can you help me understand why this is happening and how I can fix it?
Here is my code
Thank you
tab1, tab2, tab3 = st.tabs(["tab1", "tab2", "tab3"])
with tab1:
'This is tab1'
with tab2:
'This is tab2'
with st.sidebar:
st.write('sidebar')
with tab3:
'This is tab3'