mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Autocomplete: Revert fix for #7024, broke regular menu selection.
Disabled test for now (need to reopen ticket).
This commit is contained in:
parent
85ac420a1e
commit
c17f245d98
@ -203,6 +203,7 @@ test("cancel select", function() {
|
||||
}, 50);
|
||||
});
|
||||
|
||||
/* TODO previous fix broke more than it fixed, disabling this for now - messed up regular menu select event
|
||||
test("blur without selection", function() {
|
||||
expect(1);
|
||||
var ac = $("#autocomplete").autocomplete({
|
||||
@ -218,5 +219,6 @@ test("blur without selection", function() {
|
||||
start();
|
||||
}, 50);
|
||||
});
|
||||
*/
|
||||
|
||||
})(jQuery);
|
||||
|
1
ui/jquery.ui.autocomplete.js
vendored
1
ui/jquery.ui.autocomplete.js
vendored
@ -365,7 +365,6 @@ $.widget( "ui.autocomplete", {
|
||||
this.menu.element.hide();
|
||||
this.menu.blur();
|
||||
this._trigger( "close", event );
|
||||
this.menu.isNewMenu = true;
|
||||
}
|
||||
},
|
||||
|
||||
|
4
ui/jquery.ui.menu.js
vendored
4
ui/jquery.ui.menu.js
vendored
@ -18,7 +18,6 @@ var idIncrement = 0;
|
||||
$.widget("ui.menu", {
|
||||
defaultElement: "<ul>",
|
||||
delay: 150,
|
||||
isNewMenu: true,
|
||||
options: {
|
||||
position: {
|
||||
my: "left top",
|
||||
@ -55,8 +54,7 @@ $.widget("ui.menu", {
|
||||
self.select( event );
|
||||
})
|
||||
.bind( "mouseover.menu", function( event ) {
|
||||
if ( self.options.disabled || self.isNewMenu ) {
|
||||
self.isNewMenu = false;
|
||||
if ( self.options.disabled ) {
|
||||
return;
|
||||
}
|
||||
var target = $( event.target ).closest( ".ui-menu-item" );
|
||||
|
Loading…
Reference in New Issue
Block a user