Skip to main content

Search and Top Navigation

#9346 closed bug (notabug)

Opened May 30, 2013 03:43PM UTC

Closed August 28, 2013 08:43AM UTC

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

Reported by: jzaefferer 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

Attachments (0)
Change History (3)

Changed May 31, 2013 02:03AM UTC by tj.vantoll comment:1

status: newopen

Changed August 28, 2013 04:30AM UTC by k_borchers comment:2

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?

Changed August 28, 2013 08:43AM UTC by jzaefferer comment:3

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