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
Before streamlit 1.12.0, It used to be that if you had widgets with different labels but the same key, that was fine. Now, any two widgets of the same type with the same key cause a DuplicateWidgetID error.
Steps to reproduce
Code snippet:
import streamlit as st
st.checkbox("Label1", key=1)
st.checkbox("Label2", key=1)
Expected behavior:
No error raised
Actual behavior:
DuplicateWidgetID raised
Is this a regression?
Yes. It worked fine on streamlit < 1.12.0
Debug info
Streamlit version: (get it with $ streamlit version) 1.12.0
Python version: (get it with $ python --version) 3.10.3
blackary
changed the title
Streamlit 1.12.0 doesn't allow the same key for widgets with different names
Streamlit 1.12.0 doesn't allow the same key for widgets with different labels
Aug 15, 2022
Summary
Before streamlit 1.12.0, It used to be that if you had widgets with different labels but the same key, that was fine. Now, any two widgets of the same type with the same key cause a
DuplicateWidgetID
error.Steps to reproduce
Code snippet:
Expected behavior:
No error raised
Actual behavior:
DuplicateWidgetID
raisedIs this a regression?
Yes. It worked fine on streamlit < 1.12.0
Debug info
$ streamlit version
) 1.12.0$ python --version
) 3.10.3Additional information
Originally reported on forum https://discuss.streamlit.io/t/streamlit-version-1-12-bug/29099/3
The text was updated successfully, but these errors were encountered: