FIX: Don't update autocomplete when removing the key.
This commit is contained in:
parent
0ef141b2c3
commit
726d81f83b
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue