aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/menu.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2016-04-12 15:10:22 -0400
committerScott González <scott.gonzalez@gmail.com>2016-04-13 11:08:21 -0400
commit57f801f1de95ce3731c443d35886fbcda989f3a0 (patch)
tree9ccec9524e20900af723e36f0933b9b529a6bd24 /ui/widgets/menu.js
parentc19fc10e8493007af4617597f0afea5f24860955 (diff)
downloadjquery-ui-57f801f1de95ce3731c443d35886fbcda989f3a0.tar.gz
jquery-ui-57f801f1de95ce3731c443d35886fbcda989f3a0.zip
Menu: Don't reset active element until after triggering `blur` event
This ensures that `ui.item` actually exists in the `blur` event. Fixes #14945 Closes gh-1696
Diffstat (limited to 'ui/widgets/menu.js')
-rw-r--r--ui/widgets/menu.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/widgets/menu.js b/ui/widgets/menu.js
index f63105fa7..22db41988 100644
--- a/ui/widgets/menu.js
+++ b/ui/widgets/menu.js
@@ -434,9 +434,9 @@ return $.widget( "ui.menu", {
this._removeClass( this.active.children( ".ui-menu-item-wrapper" ),
null, "ui-state-active" );
- this.active = null;
this._trigger( "blur", event, { item: this.active } );
+ this.active = null;
},
_startOpening: function( submenu ) {