Summary
I want to use the session_state’s texts to the text_area, but text_area’s texts don’t change once in two.
Steps to reproduce
- Run the below code.
- Write some texts in the text_area and Focus out
- Repeat No.2
Code snippet:
if 'test' not in st.session_state:
st.session_state.test = ""
st.session_state.test = st.text_area("contents", st.session_state.test)
Expected behavior:
I want to get correct texts when the text_area’s texts change every time.
Debug info
streamlit 1.16.0
Python 3.9.12