diff options
author | Aeron Glemann <aglemann@backcountry.com> | 2012-07-11 13:38:08 -0600 |
---|---|---|
committer | Aeron Glemann <aglemann@backcountry.com> | 2012-07-11 13:38:08 -0600 |
commit | 397e98693a1c9a73ebccfa5f561ebfa52939070e (patch) | |
tree | b02bd1557db8f0895b75d234d4ec0d251c4c8364 /ui/jquery.ui.selectmenu.js | |
parent | 8b8480ca06439ed974e19f1ab2592d1a3aded5f3 (diff) | |
download | jquery-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.js | 7 |
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; |