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

Handle focusing outside the editor to unselect block #34

Open
johnstonphilip opened this issue Aug 10, 2020 · 0 comments
Open

Handle focusing outside the editor to unselect block #34

johnstonphilip opened this issue Aug 10, 2020 · 0 comments

Comments

@johnstonphilip
Copy link

When you click on a block, there's no way to unselect it. So even if your focus moves to another part of the page, or you click outside the block that is currently selected, it remains selected.

You can see this in action by following these steps:

  1. Go here:
    https://youknowriad.github.io/blockbook/block/core---audio/editor
  2. Click on the block to select it, notice its toolbar pops up
  3. Click outside the block somewhere.
  4. Notice the block does not become unselected.

Sidenote: I am not totally sure if this is something to solve here in BlockBook, or if its a Gutenberg-specific issue. But since the actual Editor in Gutenberg/WordPress does unselect blocks when you click outside them, it would seem this might be an implementation detail of the project using the core-editor package.

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

No branches or pull requests

1 participant