Skip to content

Commit 4b53179

Browse files
author
David Yung
committed
give close handler a chance to fire even if the menu's visibility state isn't actually changed. this is important when using an ajax source because the request may still be in flight when the user tries to close the autocomplete by blurring it
1 parent 60d4e0a commit 4b53179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ $.widget( "ui.autocomplete", {
337337
if ( this.menu.element.is(":visible") ) {
338338
this.menu.element.hide();
339339
this.menu.blur();
340-
this._trigger( "close", event );
341340
}
341+
this._trigger( "close", event );
342342
},
343343

344344
_change: function( event ) {

0 commit comments

Comments
 (0)