Skip to content

"More options" dropdown menu stuck after removing block #14754

@svenvanhal

Description

@svenvanhal

Describe the bug
The "More options" menu (three dot button) in the Top Toolbar is stuck when a block is removed using the arrow keys.

Using Gutenberg 5.4.0-rc.1.

To Reproduce
Steps to reproduce the behavior:

  1. Add new post
  2. Select the first block ("Start writing or type / choose a block")
  3. Press ALT + F10, Arrow Left, ENTER to open the "More options" dropdown.
  4. Select "Remove Block" with the arrow keys
  5. Observe that the dropdown menu stays open.

To confirm the issue, add any number of blocks and try these steps on a random block.

Expected behavior
The dropdown menu should close after the block is removed.

(Note: the menu also stays open when performing these steps with the mouse, but can be closed by clicking anywhere on the screen. This is only possible using the keyboard by selecting the post title, because it does not have a more options menu.)

Desktop (please complete the following information):

  • OS: Windows 10 (build 1809)
  • Browser Firefox Developer Edition
  • Version 67.0b6

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions