-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Clicking CCv2 managed popovers closes the sidebar on mobile #13647
Copy link
Copy link
Closed
Labels
area:mobileRelated to mobile device supportRelated to mobile device supportfeature:custom-componentsRelated to custom componentsRelated to custom componentsfeature:st.sidebarRelated to `st.sidebar` containerRelated to `st.sidebar` containerpriority:P3Medium priorityMedium prioritystatus:confirmedBug has been confirmed by the Streamlit teamBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expectedSomething isn't working as expected
Metadata
Metadata
Assignees
Labels
area:mobileRelated to mobile device supportRelated to mobile device supportfeature:custom-componentsRelated to custom componentsRelated to custom componentsfeature:st.sidebarRelated to `st.sidebar` containerRelated to `st.sidebar` containerpriority:P3Medium priorityMedium prioritystatus:confirmedBug has been confirmed by the Streamlit teamBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expectedSomething isn't working as expected
Checklist
Summary
When porting an antd datepicker CCv1 component to CCv2, I noticed that interacting with popovers managed by such components causes the Streamlit sidebar to close.
This only occurs in the mobile layout and only with CCv2. Interaction with the widget itself inside the bidi-component container works as expected, but interacting with the popover rendered at the top level of the DOM immediately closes the sidebar.
Here's an example:
closing.sidebar.CCv2.bug.mp4
The popover is rendered at the top level of the DOM, as a sibling of the root element:
I may send the component later, it is a bit messy at the moment since i'm still getting the hang of the new component api.
Reproducible Code Example
Steps To Reproduce
No response
Expected Behavior
No response
Current Behavior
No response
Is this a regression?
Debug info
Additional Information
No response