Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#10435 closed bug (fixed)

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:


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");

    .attr("accesskey", jSelect.attr("accesskey"))
  .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.)

Change History (7)

comment:1 Changed 3 years ago by tj.vantoll

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

comment:2 Changed 3 years ago by scottgonzalez

  • Status changed from new to open

comment:3 Changed 3 years ago by fnagel

  • Owner set to fnagel
  • Status changed from open to assigned

We agreed on copying title and accesskey attributes.

comment:5 Changed 2 years ago by Felix Nagel

  • Resolution set to fixed
  • Status changed from assigned to closed

Selectmenu: Copy title attributes

Fixes #10435 Closes gh-1298

Changeset: 979373983babce7122d98c4f3919426735555d61

comment:6 Changed 2 years ago by scottgonzalez

  • Milestone changed from none to 1.12.0

comment:7 Changed 2 years ago by scottgonzalez

  • Summary changed from Selectmenu ignores accesskey attribute to Selectmenu ignores title attribute

Updated summary to match the final decision.

Note: See TracTickets for help on using tickets.