Streamlit number_input reverts back to default value if clicking + or - buttons or if entering a new value in column layout. I believe that number_input with float does not work in column layout, while integer number_inputs work okay.
https://discuss.streamlit.io/t/problem-with-number-input/3539
What are the steps we should take to reproduce the bug:
# --- Latitude, Longitude --- not workign in column layout, working fine in st.number_input
latitude = c1.number_input('latitude', value=latitude)
longitude = c1.number_input('longitude', value=longitude)
I would expect changes to the number input to not revert to default
reversion to default on any change
yes, this used to work okay, but I was not using column layouts before.
Thanks for the report @kurt-rhee, this looks awfully similar to https://github.com/streamlit/streamlit/issues/2145#issuecomment-707377155 hopefully they will be solved together!
Fanilo
@kurt-rhee I believe #2173 should address this problem and it will be in the next release soon. If nightly succeeds tonight, you can also try it out.
Fingers crossed!
Tested out the changes, and things look good in 0.69.0+ Going to close this issue.