Fix kanban tags autocomplete
parent
2f7e8fba79
commit
21c3abde6f
|
@ -274,11 +274,13 @@ define([
|
|||
_field.setTokens(tags || []);
|
||||
|
||||
var commitTags = function () {
|
||||
dataObject.tags = Util.deduplicateString(_field.getTokens().map(function (t) {
|
||||
return t.toLowerCase();
|
||||
}));
|
||||
initialTags = Sortify(dataObject.tags);
|
||||
commit();
|
||||
setTimeout(function () {
|
||||
dataObject.tags = Util.deduplicateString(_field.getTokens().map(function (t) {
|
||||
return t.toLowerCase();
|
||||
}));
|
||||
initialTags = Sortify(dataObject.tags);
|
||||
commit();
|
||||
});
|
||||
};
|
||||
_field.tokenfield.on('tokenfield:createdtoken', commitTags);
|
||||
_field.tokenfield.on('tokenfield:editedoken', commitTags);
|
||||
|
|
Loading…
Reference in New Issue