Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-13437

contextMenu: support hiding by clicking outside only

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.5.17
    • Component/s: component-menu
    • Labels:
      None

      Description

      Currently (until version 4.3.4), context menus always disappear when the mouse cursor is moved outside the menu. It should be possible to restrict hiding the menu when the user clicks somewhere else, like in many other applications, like Windows Explorer.

      I was able to achieve this behavior by unbinding the event handler for mouseleave via extra scripting.

      RichFaces.Event.unbindById(menu.id, 'mouseleave');

      (Note that the code only prevents hiding the main menu on mouseleave.
      Sub-menus / menuGroups are still closed on mouseleave.)

      But it would be better if the contextMenu would support an attribute for turning on 'hide by outside click only'.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                lutzulrich Lutz Ulrich
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: