When choosing from the multiselectbox below, I find that I have to click the options twice in order for it to register in the streamlit application.
By default the select shows the years 2017-2019.
If I then click ‘2016’ it shows 2016-2019, correctly.
If I then click ‘2015’ it show 2016-2019 once again.
If I then click ‘2015’ once again, it shows 2015-2019, which is correct.
I want the multiselect to default to the latest y1-input always, since the application has multiple pages, which the user navigates in between.
session_state = get(y1=['2019','2018','2017'])
session_state.y1 = st.multiselect("Select year(s)['2013','2014','2015','2016','2017','2018','2019'],session_state.y1)
Can anyone help me figure a solution out?