gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Button link modal doesn't close

Open morganisok opened this issue 9 years ago • 0 comments

Issue Overview

In the button block, the link dropdown doesn't close when you are done using it, and blocks other areas of the screen.

Steps to Reproduce (for bugs)

Gutenberg 1.7, WP 4.8.3, Windows, Firefox and Chrome

  1. Create a button block
  2. Start typing in the URL field, and the dropdown of suggested links appears
  3. Select a link
  4. Click anywhere else on the screen, and the dropdown stays there. The dropdown covers the selection of common blocks underneath it.

Expected Behavior

After you select a link, the dropdown should go away. Or maybe it should go away after you click the "Apply" button. Or maybe there should be an "X" so you can choose to close it, or it should close when you click outside it. There needs to be some way to make that dropdown go away.

Current Behavior

The dropdown stays there until you click in another block. If the button is the only block you have, then it's hard to add a new one because the dropdown covers up the common block suggestions.

Possible Solution

This should be consistent with the behavior of other pop-ups and modals.

Screenshots / Video

button link modal

Related Issues and/or PRs

Todos

  • [ ] Tests
  • [ ] Documentation

morganisok avatar Nov 15 '17 20:11 morganisok