Skip to main content

Search and Top Navigation

#10435 closed bug (fixed)

Opened July 30, 2014 10:34AM UTC

Closed November 04, 2014 01:40PM UTC

Last modified November 04, 2014 01:42PM UTC

Selectmenu ignores title attribute

Reported by: m_berling Owned by: fnagel
Priority: minor Milestone: 1.12.0
Component: ui.selectmenu Version: 1.11.0
Keywords: Cc:
Blocked by: Blocking:
Description

Given the fact that the selectmenu widget is said to "''Duplicate(s) and extend(s) the functionality of a native HTML select element to overcome the limitations of the native control''", I think it should support the "accesskey" attribute of the original select element to provide the usage of a shortcut key.

Currently I'm using a workaround similar to:

var jSelect = jQuery("#myselect");

jSelect
  .selectmenu()
  .siblings(".ui-selectmenu-button")
    .attr("accesskey", jSelect.attr("accesskey"))
    .end()
  .attr("accesskey", "");

NB: Regarding the siblings() method, the above code is correct only in case there is only one selectmenu in the current DOM hierarchy level, of course. (Which, in case of my web application, is always true.)

Attachments (0)
Change History (7)

Changed July 30, 2014 01:06PM UTC by tj.vantoll comment:1

Here's an extension that does this: http://jsfiddle.net/tj_vantoll/Ja7zk/. I'm torn as to whether this should be integrated into the core widget. Thoughts anyone else?

Changed July 30, 2014 04:39PM UTC by scottgonzalez comment:2

status: newopen

Changed July 31, 2014 09:36AM UTC by fnagel comment:3

owner: → fnagel
status: openassigned

We agreed on copying title and accesskey attributes.

Changed July 31, 2014 10:37AM UTC by fnagel comment:4

Changed November 04, 2014 01:40PM UTC by Felix Nagel comment:5

resolution: → fixed
status: assignedclosed

Selectmenu: Copy title attributes

Fixes #10435

Closes gh-1298

Changeset: 979373983babce7122d98c4f3919426735555d61

Changed November 04, 2014 01:41PM UTC by scottgonzalez comment:6

milestone: none1.12.0

Changed November 04, 2014 01:42PM UTC by scottgonzalez comment:7

summary: Selectmenu ignores accesskey attributeSelectmenu ignores title attribute

Updated summary to match the final decision.