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

Add click outside toggling to block switcher menu. #596

Merged
merged 1 commit into from
May 2, 2017

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.

4 participants