-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
st.sidebar expand button is not clickable with latest Streamlit version 1.38 #26
Comments
I have the same problem |
I have the same issue when using streamlit 1.38 version. |
I have the same issue when using streamlit 1.39.0 version. And I found that |
Used both the old and new classnames in the selectors
I noticed that the top: 0 value was outside the viewport. Playing with the top value, I could replicate the correct location. However, removing the margin line solved the issue. Closes issue gabrieltempass#26.
Thanks @hansthen for the fix! @gabrieltempass if you have the change to merge this to main it would be a huge help! Thanks again for making this component has been so helpful. |
I made a new package |
@hansthen would you mind sending the link? I can't seem to find it. Thanks! |
Github repo is here: |
Happy to volunteer! @hansthen |
Checklist
Summary
After updating my environment to Streamlit 1.38. The st.sidebar button is no longer compatible with streamlet-navigation-bar, and cannot be clicked.
Reproducible code example
Steps to reproduce
Expected behavior
I expect that the sidebar can be expanded and collapsed via the sidebar button.
Current behavior
I tested it with versions <=1.37 and it works perfectly. The bug seems to come from the css styling done by streamlit-navigation-bar. I noticed in 1.38 Streamlit changed the data-testids of some of their components so that broke the CSS styling.
It looks like in the the streamlet-navigation-bar files are using
div[data-testid="collapsedControl"]
but now in 1.38, Streamlit changed the name of the sidebar button todiv[data-testid="stSidebarCollapseButton"]
. So I think updating the data-testid should fix the issue.I attached a video of the bug as well.
sidebar_bug.mov
Is this a regression?
Debug info
Additional information
No response
The text was updated successfully, but these errors were encountered: