Summary
I have two date_input objects on two pages. I expect those two items’ value will not be impacted by the operation on each other. However, by changing the footprint_date on page1 (1_p1), the st.write on page2 (2_p2) also gets changed to the selection I made on page1, and the value on the date box shows something different than the actual value of footprint_date. Could I get an explanation of why this happened?
(E.g. changing the date_input on page1 to Aug 18th, the st.write() on page2 returns Aug 18th but the value in date_input is Aug 28th. Shouldn’t the st.write on page2 be Aug 28th?)
Steps to reproduce
Code snippet:
1_p1.py
import streamlit as st
import datetime
footprint_date = st.date_input('Coverage Date', value=datetime.date(2023,8,28),
min_value=datetime.date(2023,8,18),
max_value=datetime.date(2023,8,28), format="YYYY/MM/DD")
st.write(footprint_date)
2_p2.py
import streamlit as st
import datetime
footprint_date = st.date_input('Coverage Date', value=datetime.date(2023,8,28),
min_value=datetime.date(2023,8,18),
max_value=datetime.date(2023,8,28), format="YYYY/MM/DD")
st.write(footprint_date)
Thanks for your help!