Gutenberg: Forward slash popover doesn't go away when clicking other icons

Created on 4 Dec 2019  路  4Comments  路  Source: WordPress/gutenberg

Describe the bug
When I do that forward slash command to begin searching for a block, but then change my mind to click on another UI element in the page, the popover doesn't go away.

To reproduce
Steps to reproduce the behavior:

  1. Begin typing / followed by a word to bring up the popover.
  2. While this is visible use your mouse and click on another icon on the page.
  3. Observe that the popover doesn't disappear.

Expected behavior
When clicking on other UI elements, I expect the popover to disappear.

Screenshots

popover-of-doom 2019-12-04 10_01_45

Desktop (please complete the following information):

  • OS Catalina
  • Chrome and FF most recent builds
  • Gutenberg 7.0
General Interface [Type] Bug

All 4 comments

I think this is a side effect of a recent change of the focus setting on the appender #18379

nope, testing showed that change not to be the problem, looking into some z-index things now.

@tellthemachines this commit appears to have moved the top bar popovers lower in the stack which created the behaviour found by Mark. No idea how to solve (z-index hell) but I thought you could come up with a wise solution!

@draganescu I would expect the forward slash popover to close when focus is moved elsewhere on the page, and that's unrelated to z-index. z-index only affects if it displays over or under the other elements, but even if it displays under the top nav stuff it's still open, and it should be closed. Will need some investigation to find out why this is happening.

Was this page helpful?
0 / 5 - 0 ratings