-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
issue/bug-confirmedIssues about a bug that has been confirmed by a maintainerIssues about a bug that has been confirmed by a maintainerissue/has-prIssue has a PR attached to it that may solve the issueIssue has a PR attached to it that may solve the issuemenu-bugAddresses menu positioning, scrolling, or general interactionsAddresses menu positioning, scrolling, or general interactions
Description
Hi, we're using v4.3.1 and wish to load the select with the menu open. We're using the component like this:
<ReactSelect defaultMenuIsOpen menuPortalTarget={document.body} />
The component doesn't render with the menu open. It does work if I remove the menuPortalTarget prop.
I've had a look at the source code and it looks like there's a race condition with the MenuPortal component and the controlRef. I'll create a PR for you to take a look at.
Thanks :)
Metadata
Metadata
Assignees
Labels
issue/bug-confirmedIssues about a bug that has been confirmed by a maintainerIssues about a bug that has been confirmed by a maintainerissue/has-prIssue has a PR attached to it that may solve the issueIssue has a PR attached to it that may solve the issuemenu-bugAddresses menu positioning, scrolling, or general interactionsAddresses menu positioning, scrolling, or general interactions