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

Popover: don't render fallback anchor if anchorRef is defined #19308

merged 2 commits into from Dec 23, 2019


Copy link

ellatrix commented Dec 23, 2019


Currently a span element is always rendered for a Popover to use as a fallback if there is no anchorRef or anchorRect. It's not needed to render this element if either of these is defined.

How has this been tested?

Popover should render as before. I also tested that the scroll lock still works for the inserter on small screens.


Types of changes


  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR. .

This comment has been minimized.

Copy link
Member Author

ellatrix commented Dec 23, 2019

I also tested with Storybook that the fallback still works.

@ellatrix ellatrix merged commit a94c854 into master Dec 23, 2019
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
@ellatrix ellatrix deleted the fix/popover-fallback-anchor branch Dec 23, 2019
@youknowriad youknowriad added this to the Gutenberg 7.2 milestone Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.