#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: |
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.)
Change History (7)
comment:1 Changed 2 years ago by tj.vantoll
comment:2 Changed 2 years ago by scottgonzalez
- Status changed from new to open
comment:3 Changed 2 years ago by fnagel
- Owner set to fnagel
- Status changed from open to assigned
We agreed on copying title and accesskey attributes.
comment:4 Changed 2 years ago by fnagel
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.
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?