ui.menu blur event ui item returns null
|Reported by:||Andrea Fercia||Owned by:||Scott González|
Looking at the docs, they state the ui.menu blur event passes the event itself and a ui object containing the currently active menu item. See https://api.jqueryui.com/menu/#event-blur
By the way, the code actually returns
null for the ui.item. Seems either the docs, but more likely the null value is wrong. I can understand why the active menu item is set to
null but maybe the event should be triggered before?
FWIW noticed this while working on a new core feature for WordPress 4.5, see https://core.trac.wordpress.org/attachment/ticket/33301/33301.voiceover.diff where we used a workaround. Any feedback more than welcome, thanks! :)