Fix kanban tags autocomplete

pull/1/head
yflory 5 years ago
parent 2f7e8fba79
commit 21c3abde6f

@ -274,11 +274,13 @@ define([
_field.setTokens(tags || []); _field.setTokens(tags || []);
var commitTags = function () { var commitTags = function () {
dataObject.tags = Util.deduplicateString(_field.getTokens().map(function (t) { setTimeout(function () {
return t.toLowerCase(); dataObject.tags = Util.deduplicateString(_field.getTokens().map(function (t) {
})); return t.toLowerCase();
initialTags = Sortify(dataObject.tags); }));
commit(); initialTags = Sortify(dataObject.tags);
commit();
});
}; };
_field.tokenfield.on('tokenfield:createdtoken', commitTags); _field.tokenfield.on('tokenfield:createdtoken', commitTags);
_field.tokenfield.on('tokenfield:editedoken', commitTags); _field.tokenfield.on('tokenfield:editedoken', commitTags);

Loading…
Cancel
Save