m-wrzr / streamlit-searchbox

Streamlit searchbox that dynamically updates and provides a list of suggestions based on a provided function
MIT License
253 stars 33 forks source link

Support default values #3

Closed hansthen closed 1 year ago

hansthen commented 1 year ago

This is a feature request rather than an issue. When switching between pages in a multi-page app, the previously selected item is lost. Currently, the user has to select a value by searching for it. We'd like to store the selected item in state, so that we can remember it after we switch pages.

m-wrzr commented 1 year ago

There is now an option to provide a default return value. Thanks for the suggestion!