m-wrzr / streamlit-searchbox

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

Add option to clear the text field after an item is selected #5

Closed hansthen closed 1 year ago

hansthen commented 1 year ago

We use the searchbox (among other things) for adding items to a list for further processing. Currently, when the user has selected a search term, the selected item is shown in the searchbox text field. We would like an option to clear the text field after the selection (similar to clear-on-submit in st.form).

m-wrzr commented 1 year ago

You can now pass clear_on_submit.