You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While building an app and testing it I've noticed that when you use date_input it can crash if you delete everything there manually, it crashes as the time format is not correct, and when you try to try/catch it, there is no real way to overcome it, because if I recreate the widget, it needs a new key.. so you can really wrap it as far as I know.
Steps to reproduce
import streamlit as st
import datetime as dt
x = st.date_input('select date',value = dt.datetime.now())
(Please provide a code snippet! This will help expedite us finding and solving the problem.)
If applicable, please provide the steps we should take to reproduce the bug:
Run the code above
Delete the input manually
The app will crash.
Would be awesome if the date would reset to the default value which is set, or at least to the current time.
Explain the buggy behavior you experience when you go through the steps above.
If applicable, add screenshots to help explain your problem.
Streamlit version: 0.79
Python version: 3.8
OS version: Win10 / CentOS/ Ubuntu
Browser version: Any
The text was updated successfully, but these errors were encountered:
Hi @BugzTheBunny Thanks for the report! I was able to reproduce this issue and marked it to fix in a bug project. I also marked this as a good first issue because the solution seems straightforward! Essentially, the frontend should send back a valid output, or the backend should interpret invalid output without throwing an exception.