Grid menu disappears but the grid remains

When the grid has a sudden quick key press, the grid menu suddenly disappears, but the grid remains on its place, without its configuration menu to configure the grid: