Skip to content

Wrong menu position when used in shadow dom #5009

Open
@mkampmey

Description

@mkampmey

Hello!
I am using different react components from different component libraries and react-select is the only one which does not fully work in web components with shadow dom enabled. In my case the menu of react-select has a wrong position. I tried similar components of other libraries that also render a menu, but I did not have any problems with them. So I guess that the calculation of the position of the menu is a bit buggy, especially when used in web components. Or maybe I am missing some property which could solve my issue.

You can check my code here: https://codesandbox.io/s/react-select-with-shadow-dom-and-menuportaltarget-n03fe?file=/src/ReactSelectElement.js

So is this a bug or is there some way I could fix my issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-author-responseIssues or PRs waiting for more information from the authorissue/bug-confirmedIssues about a bug that has been confirmed by a maintainermenu-bugAddresses menu positioning, scrolling, or general interactions

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions