I have a multipage app with a Home page and Resources page. On the Resources page I have a multiselect widget. If I select something in that multiselect, navigate back to the home page and navigate back to the "Resources page" then the multiselect shows as empty but the list return from the multiselect is not empty.
"""This is a minimum replicating example of this issue
https://github.com/MarcSkovMadsen/awesome-streamlit/issues/7"""
import streamlit as st
pages = ["Home", "Resources"]
tags = ["Awesome", "Social"]
page = st.sidebar.radio("Navigate", options=pages)
st.title(page)
if page == "Resources":
selection = st.multiselect("Select tag", tags)
st.write(selection)
What are the steps we should take to reproduce the bug:
streamlit run <code_file.py>
Navigate to the Resources page

Select the social tag

Navigate back to Home

Navigate back to Resources

I would expect in step 5 that either
or
The multiselect returns a different list than it shows
Thanks for sending the minimum example, @MarcSkovMadsen ! This is extremely helpful! I'll see when the eng team can take a look a this.
@MarcSkovMadsen Thanks for taking your time testing streamlit!
this had been fixed in version 0.48.0 , which streamlit version are you using?
Closing this as we did not receive an answer in few days, if you still having problems please fell free to re open it.
Most helpful comment
Closing this as we did not receive an answer in few days, if you still having problems please fell free to re open it.