FIX: Don't update autocomplete when removing the key.

This commit is contained in:
Guo Xiang Tan 2016-02-05 16:47:47 +08:00
parent 0ef141b2c3
commit 726d81f83b
1 changed files with 4 additions and 0 deletions

View File

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