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

Empty result issue #14

Closed dopc closed 1 year ago

dopc commented 1 year ago

Solution for #15.

Hey, thanks for the great work!

When the search function returns empty list, this line returns True, and the searchbox returns the last result which is not empty.

Behavior:

Expected:

Solution:

Make search function return value empty list if it is None and do nothing.