2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

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

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: