Skip to content

Conversation

@BE-Webdesign
Copy link
Contributor

Along with #582 this will cover #376. This adds the click outside
higher order component to the block switcher menu. So that clicks into
block content will close the menu while it is open.

Testing instructions:

Go to a heading or text block. Open the block switcher menu in the top
left. Click on that blocks text content outside of the menu. Verify
that the menu closes. Repeat this by clicking anywhere and verifying
that the switcher closes. Verify that the switcher still works by
clicking on it.

Along with #582 this will cover #376.  This adds the click outside
higher order component to the block switcher menu. So that clicks into
block content will close the menu while it is open.

**Testing instructions:**

Go to a heading or text block.  Open the block switcher menu in the top
left.  Click on that blocks text content outside of the menu.  Verify
that the menu closes.  Repeat this by clicking anywhere and verifying
that the switcher closes.  Verify that the switcher still works by
clicking on it.
Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@nylen nylen merged commit 734e188 into master May 2, 2017
@nylen nylen deleted the add/click-outside-to-block-switcher branch May 2, 2017 23:17
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.

5 participants