Disable a focus() call in menubar.js which messed with search filter focus

Hopefully this is a good idea..?  Probably should look for a replacement
lib at some point...
This commit is contained in:
Lance Edgar 2016-10-16 21:40:04 -05:00
parent 6cb4b86fd0
commit 383d714214

View file

@ -267,8 +267,12 @@
.removeAttr( "aria-hidden" ) .removeAttr( "aria-hidden" )
.attr( "aria-expanded", "true" ) .attr( "aria-expanded", "true" )
.menu("focus", event, menu.children( ".ui-menu-item" ).first() ) .menu("focus", event, menu.children( ".ui-menu-item" ).first() )
// TODO need a comment here why both events are triggered // TODO need a comment here why both events are triggered
.focus() // TODO: heh well given the above comment i'm not sure what the
// implications might be for disabling the focus() call..but it
// messes with text input focus in undesirable ways..so disable it
// we will..until we know why we shouldn't
// .focus()
.focusin(); .focusin();
this.open = true; this.open = true;
}, },