aboutsummaryrefslogtreecommitdiffstats
path: root/ui/autocomplete.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/autocomplete.js')
-rw-r--r--ui/autocomplete.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/autocomplete.js b/ui/autocomplete.js
index 3453ee399..399a190b5 100644
--- a/ui/autocomplete.js
+++ b/ui/autocomplete.js
@@ -286,7 +286,7 @@ $.widget( "ui.autocomplete", {
previous = this.previous;
// only trigger when focus was lost (click on menu)
- if ( this.element[ 0 ] !== this.document[ 0 ].activeElement ) {
+ if ( this.element[ 0 ] !== $.ui.safeActiveElement( this.document[ 0 ] ) ) {
this.element.focus();
this.previous = previous;
// #6109 - IE triggers two focus events and the second