nicedouble / StreamlitAntdComponents

A Streamlit component to display Antd-Design
https://nicedouble-streamlitantdcomponentsdemo-app-middmy.streamlit.app/
MIT License
437 stars 29 forks source link

How to make the "button" reset the value after each click #57

Open Chenyme opened 6 months ago

Chenyme commented 6 months ago

Thanks to your component, recently when I was using it, I wanted to restore it to its initial state after clicking on the "button", like the official "st.buton", is there a way to do this?

pgarrett-scripps commented 4 months ago

+1

I tried to force the button to reset by updating its key but this seems to have its own set of issues. Whenever a key is specified my app just starts refreshing over and over again.

EUphorik commented 2 months ago

@Chenyme i have the same problem, did you found any workaround to prevent this ?