Streamlit_elements onChange event not working on Streamlit 1.34

Hello!
I am using streamlit_elements in my project and I am also impressed with the new releases of streamlit. But unfortunately, in versions 1.34 and later, events like onClick, onBlur, onDragStop do not work.
I have already found a topic about other custom libraries with similar issues, but has anyone found a solution for streamlit_elements?

Well, it looks like I was able to use a workaround similar to the previously mentioned topic โ€“ I replaced the import in /streamlit_elements/core/callback.py

# from streamlit.components.v1 import components
 from streamlit.components.v1 import custom_component as components

This helped to restore the previous functionality.
I hope the developers will address this issue in future releases.

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.