I am using ver 1.52.0, but I think 1.55.0 has the same problem.
I can reproduce this in the example of st.date_input document(this URL: st.date_input - Streamlit Docs)
in area of example1 in this page:
-
I inputted 2020-08-11
-
I changed the input using manually input to 2020-08-34
The result is like this picture. It shows 2020/08/34 but when you use python to get the value, it is 2020/8/11.
Because of this behavior, I cannot detect the user input an invalid date. I want to show an error message for this kind of situation. Or, if screamlit shows an error message instead, it is OK too.
At least, if no error message is to be shown, can the widget set back the previous value(i.e. 2020/8/11 in this example) so that the user will not get confused.
If none of the above can be achieved, otherwise is it possible to add an option to prevent user direct input and only let them select from the widget?
