I am seeing some odd behavior with the
multiselect widget that seems to be related to the delay it takes our data to load. You lose the selected values after selecting an item. I have recreated the issue using some static data and a small app (code below). If you move the multiselect above the
load_data routine it behaves as expected (the majority of the time).
import streamlit as st @st.cache() def load_data(): data = [True]*50000 return data a_widget = st.empty() data_pd = load_data() a_widget.multiselect("Apple", ['a','b','c'], key='key_apple')
- Linux (Ubuntu)
- Python: 3.7.5
- Streamlit: 0.65.2