View Full Version : ContextMenu disables parent

28 Apr 2008, 4:22 AM
Given a tree with context menu you have to close an opened content menu before you can click another treeitem.
Is this wanted?

protected void onShowContextMenu(int x, int y) {
if (fireEvent(Events.ContextMenu)) {
disabled = true;

28 Apr 2008, 5:30 AM
BaseEventPreview, which is what Menu uses for auto hide behavior, was returning false when event preview was being removed. I have added a new configuration option that specifies if the auto hide event should be canceled. This has been set to false for the component's context menu. The auto hide click will now cause a new selection on the tree demo page. Change is in SVN.