vaadin / context-menu

Vaadin ContextMenu
Apache License 2.0
11 stars 21 forks source link

Error: Grid motion cursors stop responding #76

Closed hdeantoni closed 6 years ago

hdeantoni commented 7 years ago

Grid motion cursors stop responding. It happens when using the ContextMenu in a Grid. I press right click and it shows me the menu. Then, I press left-click outside the menu and from that moment the movement cursors (up, down to the sides) stop responding in the Grid. It also happens in online examples, for example, at https://demo.vaadin.com/sampler/#addons/contextmenu It occurs both in the version of Vaadin 8 and 7.

sirbris commented 6 years ago

I can confirm this! In our V8 application (after opening context menu) "arrow key down" stops working in all Grids/TreeGrids of the current UI instance... will this be fixed?

sirbris commented 6 years ago

FYI: up/down keys work when using modifier "Shift" Also, after pressing "ESC" the arrow keys seem to start working again.

tsuoanttila commented 6 years ago

Sounds like the ContextMenu is not removing the listeners for events and thus making the Grid never getting those events.

sirbris commented 6 years ago

Additional info: When I open the context menu and use down cursor it skips one entry, as if one would have used down cursor twice.

And following exception occurs when using cursor (after context menu was opened):

Wed Mar 21 09:40:00 GMT+100 2018 com.vaadin.client.ApplicationConfiguration SEVERE: Exception caught: Index: -1, Size: 0 com.google.gwt.event.shared.UmbrellaException: Exception caught: Index: -1, Size: 0

elmot commented 6 years ago

@sirbris Please make a separate ticket. I do not think it is the same problem. Also a code example will be helpful.