aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/jquery.ui.autocomplete.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js
index 2efd4e64b..92b9878ec 100644
--- a/ui/jquery.ui.autocomplete.js
+++ b/ui/jquery.ui.autocomplete.js
@@ -119,7 +119,9 @@ $.widget( "ui.autocomplete", {
}
},
blur: function( event, ui ) {
- self.element.val( self.term );
+ if ( self.menu.element.is(":visible") ) {
+ self.element.val( self.term );
+ }
}
})
.zIndex( this.element.zIndex() + 1 )