franekp / streamlit-permalink

MIT License
39 stars 2 forks source link

Component `date_input` not clearable. #10

Open xkollar opened 2 weeks ago

xkollar commented 2 weeks ago

With st.date_input(...): image With stp.date_input(...): image

As a workaround I tell users to clear it from URL (or I saw them just to some super early date).

$ pip freeze | grep permalink
streamlit-permalink==0.5.2
franekp commented 2 weeks ago

Thanks for the information!

I won't have time to debug this any time soon :/ Although, if you find a fix I'd be happy to merge it and upload to PyPI.

xkollar commented 2 weeks ago

That is understandable.

There is a chance that it is related to underlying component and how it handles default value, if I'll have anything I'll get back 🙏

xkollar commented 4 days ago

@franekp Not sure if to put it under this issue, but streamlit supports date_input also in time range mode (when it returns tuple (start_date, end_date)), but when I tried to use it with streamlit permalink it did not work.