summaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.selectmenu.js
diff options
context:
space:
mode:
authorAeron Glemann <aglemann@backcountry.com>2012-07-11 13:38:08 -0600
committerAeron Glemann <aglemann@backcountry.com>2012-07-11 13:38:08 -0600
commit397e98693a1c9a73ebccfa5f561ebfa52939070e (patch)
treeb02bd1557db8f0895b75d234d4ec0d251c4c8364 /ui/jquery.ui.selectmenu.js
parent8b8480ca06439ed974e19f1ab2592d1a3aded5f3 (diff)
downloadjquery-ui-397e98693a1c9a73ebccfa5f561ebfa52939070e.tar.gz
jquery-ui-397e98693a1c9a73ebccfa5f561ebfa52939070e.zip
fixed: "focus" doesn't bubble, see #241
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r--ui/jquery.ui.selectmenu.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index d878ec5c2..5f772dfef 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -308,7 +308,12 @@ $.widget("ui.selectmenu", {
href : '#nogo',
tabindex : -1,
role : 'option',
- 'aria-selected' : false
+ 'aria-selected' : false,
+ focus: function() {
+
+ // bubble the focus event
+ $(this).parent().focus();
+ }
};
if ( selectOptionData[ i ].disabled ) {
thisAAttr[ 'aria-disabled' ] = selectOptionData[ i ].disabled;