Results 1 to 2 of 2

Thread: ContextMenu disables parent

  1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    12
    Vote Rating
    0
      0  

    Default ContextMenu disables parent

    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;
    }
    }

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
      0  

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •