Skip to content
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

Fix menuplacement context #4295

Merged
merged 4 commits into from
Nov 23, 2020
Merged

Fix menuplacement context #4295

merged 4 commits into from
Nov 23, 2020

Conversation

JedWatson
Copy link
Owner

@JedWatson JedWatson commented Nov 23, 2020

This PR fixes a regression that was introduced when we merged #3928, where the getPortalPlacement function would always be null in the new context.

@bladey and I picked this up when reviewing #4103 - thanks @s-o-r-o-u-s-h for the correct implementation that drew our attention to it.

Thanks also to @ebonow for the real-time pairing as we reviewed this 🎉

This also corrects an issue in the MenuPortal example that lets this be tested using the web inspector, although we've discovered another bug to do with automatic menu placement when using portals which we'll look into further later.

Having merged the bug into master without resolution was blocking the next release, which hopefully we can get on with again now.

@changeset-bot
Copy link

changeset-bot bot commented Nov 23, 2020

🦋 Changeset detected

Latest commit: 665443b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
react-select Patch
@react-select/docs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 23, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 665443b:

Sandbox Source
react-codesandboxer-example Configuration

@bladey bladey merged commit 709b0bc into master Nov 23, 2020
@bladey bladey deleted the fix-menuplacement-context branch November 23, 2020 07:31
@github-actions github-actions bot mentioned this pull request Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants