Merge pull request #3994 from tgxworld/fix_autocomplete

FIX: Don't update autocomplete when removing the key.
This commit is contained in:
Régis Hanol 2016-02-06 11:10:54 +01:00
commit 54b0de8472

View File

@ -430,6 +430,10 @@ export default function(options) {
term = me.val().substring(completeStart + (options.key ? 1 : 0), caretPosition);
if ((completeStart === caretPosition) && (term === options.key)) {
closeAutocomplete();
}
updateAutoComplete(options.dataSource(term));
return true;
default: