[richfaces-issues] [JBoss JIRA] (RF-13437) contextMenu: support hiding by clicking outside only

Lutz Ulrich (JIRA) issues at jboss.org
Thu Dec 12 08:58:32 EST 2013


Lutz Ulrich created RF-13437:
--------------------------------

             Summary: contextMenu: support hiding by clicking outside only
                 Key: RF-13437
                 URL: https://issues.jboss.org/browse/RF-13437
             Project: RichFaces
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: component-menu
            Reporter: Lutz Ulrich
            Priority: Minor


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'.
  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list