Skip to content

Commit

Permalink
Merge pull request #3 from hoggatt/streamlit-update
Browse files Browse the repository at this point in the history
Support streamlit >= 1.37
  • Loading branch information
hoggatt authored Aug 2, 2024
2 parents 8ff56e0 + d5a3ce2 commit ecebe50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ key: str = "combobox"
```
<br/>

If true, will call `st.experimental_rerun()` on each search keystroke. If this is set to its default (False), the auto-complete results will always be one keystroke behind.
If true, will call `st.rerun()` on each search keystroke. If this is set to its default (False), the auto-complete results will always be one keystroke behind.
```python
rerun_on_update: bool = False
```
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="st-combobox",
version="1.1.1",
version="1.2.0",
author="hoggatt",
description="Streamlit AutoComplete ComboBox",
long_description=long_description,
Expand All @@ -20,7 +20,7 @@
},
python_requires=">=3.7",
install_requires=[
"streamlit >= 1.0",
"streamlit >= 1.27.0",
],
extras_require={
"tests": ["wikipedia"],
Expand Down
2 changes: 1 addition & 1 deletion st_combobox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _process_search(
and searchterm == blank_search_value
and prev_size == 0
):
st.experimental_rerun()
st.rerun()

# if not reruning, can also call for stopping on update
if stop_on_update:
Expand Down

0 comments on commit ecebe50

Please sign in to comment.