Skip to content

Commit

Permalink
Merge pull request #484 from david/master
Browse files Browse the repository at this point in the history
Fix for autocomplete on contenteditable divs.
  • Loading branch information
scottgonzalez committed Oct 1, 2011
2 parents 1e395ec + 6637198 commit 5dcaacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.autocomplete.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ $.widget( "ui.autocomplete", {
clearTimeout( self.searching ); clearTimeout( self.searching );
self.searching = setTimeout(function() { self.searching = setTimeout(function() {
// only search if the value has changed // only search if the value has changed
if ( self.term != self.element.val() ) { if ( self.term != self._value() ) {
self.selectedItem = null; self.selectedItem = null;
self.search( null, event ); self.search( null, event );
} }
Expand Down

0 comments on commit 5dcaacc

Please sign in to comment.