You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@flucas96 Thanks for reporting this issue. In the current implementation, this behavior is mostly expected. This is working the same as the st.checkbox implementation. Changing this to enhancement since I think it is a valid consideration to change this behavior for checkbox and toggle.
i found this issue today. st.toggle clickable is occupying whole box, where is rendered. if you split row into multiple ones, like with columns, it will be clickable only in that part of row, which bellongs to collumn.
Checklist
Summary
Hey everyone,
I am happy to see that the new st.toggle feature got released with version 1.26. Thank you very much for that!!
I just tried it out and noticed that when clicking anywhere in the row where the toggle widget is placed it activates it.
I uploaded a small example of what I mean here:
Streamlit (toggletest.streamlit.app) 5
GIF:
Repost from:
https://discuss.streamlit.io/t/streamlit-toggle-in-version-1-26-bug/50118
Reproducible Code Example
Steps To Reproduce
Expected Behavior
When the cursor is not directly above the st.toggle button - clicking anywhere should not change its state.
Current Behavior
Clicking anywhere in the same row activates or deactivates the st.toggle.
Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: