We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60c00cd commit 3931da0Copy full SHA for 3931da0
ui/autocomplete.js
@@ -229,6 +229,16 @@ $.widget( "ui.autocomplete", {
229
this.cancelBlur = true;
230
this._delay(function() {
231
delete this.cancelBlur;
232
+
233
+ // Support: IE 8 only
234
+ // Right clicking a menu item or selecting text from the menu items will
235
+ // result in focus moving out of the input. However, we've already received
236
+ // and ignored the blur event because of the cancelBlur flag set above. So
237
+ // we restore focus to ensure that the menu closes properly based on the users
238
+ // next actions.
239
+ if ( document.activeElement !== this.element[ 0 ] ) {
240
+ this.element.focus();
241
+ }
242
});
243
244
// clicking on the scrollbar causes focus to shift to the body
0 commit comments