diff --git a/setup.py b/setup.py index 9503386..f170c48 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="st-combobox", - version="1.0.2", + version="1.0.3", author="hoggatt", description="Streamlit AutoComplete ComboBox", long_description=long_description, diff --git a/st_combobox/__init__.py b/st_combobox/__init__.py index d302183..fb3d45d 100644 --- a/st_combobox/__init__.py +++ b/st_combobox/__init__.py @@ -78,6 +78,18 @@ def _get_value(value: any) -> any: st.session_state[key]["options_real_type"] = [_get_value(v) for v in search_results] # rerun if specified unless we are making the default search and our results are the same size as the previous search (prevent infinite loop) + print( + "-in loop now should we restart?: ", + blank_search_value is not None, + searchterm == blank_search_value, + prev_size == len(st.session_state[key]["options"]), + ) + print("-rerun_on_update: ", rerun_on_update) + print("-stop_on_update: ", stop_on_update) + print("-blank_search_value: ", blank_search_value) + print("-searchterm: ", searchterm) + print("-prev_size: ", prev_size) + print("-len(st.session_state[key][options]): ", len(st.session_state[key]["options"])) if rerun_on_update and not ( blank_search_value is not None and searchterm == blank_search_value