Open
Description
Bug Report (Priority: Urgent)
Description
The dropdown menu in Semantic UI React does not append to the body element. Instead, it relies on its parent container. If the parent container has an overflow:auto or similar style applied, the dropdown content gets clipped within the parent’s scrollable area, as shown in the screenshot.
Steps
- Add a dropdown component inside a parent container with a style like overflow: auto; height: Xpx;.
- Open the dropdown.
- Observe that the dropdown menu is clipped within the parent container instead of overflowing properly.
Expected Result
The dropdown menu should provide an option (e.g., appendToBody: true) to render itself outside the parent container, directly under the body element. This would ensure that dropdown content is not constrained by the overflow style of the parent container.
Actual Result
The dropdown content is restricted within the parent container with overflow-auto applied, causing it to be clipped and inaccessible if the parent container has scrollbars.
Version
"semantic-ui-react": "^2.1.4"
Additional Notes
- This issue could potentially be resolved by introducing a property similar to appendToBody: true for dropdown components, which renders the dropdown menu outside of the parent container in the DOM hierarchy.
- I couldn't find any reference to such a property in the official Semantic UI React documentation.
Metadata
Assignees
Labels
No labels