Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions streamlit_antd_components/utils/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@Software : PyCharm
"""
from streamlit import session_state as _state
from streamlit.components.v1 import components as _components
from streamlit.components.v1 import custom_component as _components


def _patch_register_widget(register_widget):
Expand Down Expand Up @@ -52,4 +52,4 @@ def register(key, callback, args, kwargs):
assert key is not None, 'Please set a key in component !'
args = args if args is not None else []
kwargs = kwargs if kwargs is not None else {}
register_callback(key, callback, *args, **kwargs)
register_callback(key, callback, *args, **kwargs)