diff options
author | Richard Worth <rdworth@gmail.com> | 2010-03-15 21:24:42 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2010-03-15 21:24:42 +0000 |
commit | d2272f86bcc4f526f886f6b7846e34c0f1442c34 (patch) | |
tree | b1133b98218bad508c493a9b9c57af95cbd93eb2 /ui/jquery.ui.autocomplete.js | |
parent | 2be46581da77440b88a9cd55a129c90c6af7a82d (diff) | |
download | jquery-ui-d2272f86bcc4f526f886f6b7846e34c0f1442c34.tar.gz jquery-ui-d2272f86bcc4f526f886f6b7846e34c0f1442c34.zip |
Autocomplete: fixed #5349 - Autocomplete: mouseover of menu item causes data loss
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 4 |
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 ) |