m-wrzr/streamlit-searchbox

Support default values

hansthen opened this issue · 1 comments

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.

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