aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.menu.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2012-08-30 22:57:37 +0200
committerFelix Nagel <info@felixnagel.com>2012-08-30 22:57:37 +0200
commitdaadc84416d22eca651c85627d5dd683d7727d3e (patch)
treec52b8c3e89336d4d91e5a4aac8c298d472312c7a /ui/jquery.ui.menu.js
parentc1799024684780995ba666aa1c9acfa34c69f12a (diff)
parentdec9c54632be191947c310b402810cf6f1b4250a (diff)
downloadjquery-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.js5
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() {