#10435 closed bug (fixed)
Selectmenu ignores title attribute
Reported by: | m_berling | Owned by: | Felix Nagel |
---|---|---|---|
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 9 years ago by
comment:2 Changed 9 years ago by
Status: | new → open |
---|
comment:3 Changed 9 years ago by
Owner: | set to Felix Nagel |
---|---|
Status: | open → assigned |
We agreed on copying title and accesskey attributes.
comment:5 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Selectmenu: Copy title attributes
Fixes #10435 Closes gh-1298
Changeset: 979373983babce7122d98c4f3919426735555d61
comment:6 Changed 8 years ago by
Milestone: | none → 1.12.0 |
---|
comment:7 Changed 8 years ago by
Summary: | Selectmenu ignores accesskey attribute → 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?