I have this section of my code that stopped working for some reason
st.divider()
st.text("debug add button")
if st.button(":material/add:", key="create_new_dv"):
print("debug button add")
st.write("debug button add pressed")
# create_dataviz(project)
@clean_dialog("New dataviz", "__new_dv_dialog_")
def create_dataviz(project: Project):
...
last time I’ve checked I could use this button to open the create_dataviz
dialog, but now when I click on it… I see a rerun then nothing, like it stays on False
, so I put some debugging print, thinking that the issue was in my dialog but no, even the print is not going through.
I saw that double-clicking the button does open the dialog though (and do the debug prints). So this button only works on double click…
Sure enough I copy pasted my code to make a minimal example, but it works as intended, likewise, I have pretty much the same system in another tab of my code and it works as intended, first time, in the same run.
Obviously I don’t think I gave enough information for you to be able to debug it but also idk how to reproduce it, my code is pretty big and I couldn’t reproduce it… if you have any pointers on how to debug this I could try.