st.date_input not working in the sidebar on mobile devices or very narrow windows #8556
Open
4 tasks done
Labels
feature:st.date_input
priority:P3
status:confirmed
Bug has been confirmed by the Streamlit team
type:bug
Something isn't working
Checklist
Summary
Since some recent time, st. date_input is not working anymore when it is put in the sidebar (e.g.,
st.sidebar.date_input()
) and the streamlit app is either run on a mobile device or with a very narrow browser window (the important point is that the app width is so small that the sidebar is automatically hidden). In these cases, opening the sidebar first, then the st. date_input, and then trying to change the month or the year results in the whole sidebar being collapsed again, rendering the input method unusable.The problem occurs when streamlit is run locally (with the latest version 1.33.0) or in the cloud.
Reproducible Code Example
Steps To Reproduce
>
in the top leftExpected Behavior
A dropdown menu opens from which month or year can be selected.
Current Behavior
The sidebar collapses and the dropdown menu is 'floating in the air'.
Is this a regression?
Debug info
Additional Information
Maybe connected to #6107
The text was updated successfully, but these errors were encountered: