Opened 10 years ago

Closed 10 years ago

#9346 closed bug (notabug)

Menu: Clicking menuitem should activate its submenu, not close the menu

Reported by: Jörn Zaefferer Owned by:
Priority: minor Milestone: none
Component: ui.menu Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:

Description

Currently a click on a menuitem that has a submenu selects that menuitem, usually closing the entire menu. This doesn't make sense for an application menu. Instead it should open the submenu and move focus to the first item within that submenu.

Assuming we fix this in 1.11 and want to provide a way to get back to the old behaviour, Scott proposed this: role: null should allow choosing a parent and the default should not.

See also https://github.com/jquery/jquery-ui/pull/998

Change History (3)

comment:1 Changed 10 years ago by tj.vantoll

Status: newopen

comment:2 Changed 10 years ago by k_borchers

I don't think this is a bug. I know I added that functionality a long time ago to open submenu on click here https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.menu.js#L85-L87 and you can see it work properly here http://view.jqueryui.com/1.10.3/demos/menu/default.html

Am I misunderstanding the issue or should this be closed?

comment:3 Changed 10 years ago by Jörn Zaefferer

Resolution: notabug
Status: openclosed

Not sure why I created this, since the commit was a year ago: https://github.com/jquery/jquery-ui/commit/7e1cb95d379c95ec412dccf6bc1b4e75dd203951

Note: See TracTickets for help on using tickets.