Permalink
Browse files

Clear results if user types over max chars.

  • Loading branch information...
1 parent 31ee7df commit e95747ceda52f5678a57fa02efdfdcddad93e373 @laktek committed Jul 6, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 jquery.smart_autocomplete.js
@@ -150,6 +150,7 @@
var query = ev.smartAutocompleteData.query;
if(options.disabled || (query.length > maxChars)){
+ $(context).smartAutoComplete().clearResults();
return false;
}

0 comments on commit e95747c

Please sign in to comment.