diff options
author | Felix Nagel <info@felixnagel.com> | 2012-08-30 22:57:37 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-08-30 22:57:37 +0200 |
commit | daadc84416d22eca651c85627d5dd683d7727d3e (patch) | |
tree | c52b8c3e89336d4d91e5a4aac8c298d472312c7a /ui/jquery.ui.menu.js | |
parent | c1799024684780995ba666aa1c9acfa34c69f12a (diff) | |
parent | dec9c54632be191947c310b402810cf6f1b4250a (diff) | |
download | jquery-ui-daadc84416d22eca651c85627d5dd683d7727d3e.tar.gz jquery-ui-daadc84416d22eca651c85627d5dd683d7727d3e.zip |
Merge branch 'master' into selectmenu
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r-- | ui/jquery.ui.menu.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 78b602cce..333bc9a38 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -319,6 +319,11 @@ $.widget( "ui.menu", { .prepend( submenuCarat ); menu.attr( "aria-labelledby", item.attr( "id" ) ); }); + + // If the active item has been removed, blur the menu + if ( this.active && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) { + this.blur(); + } }, _itemRole: function() { |