client/tags: don't mark duplicated implications

This commit is contained in:
rr- 2016-07-30 20:27:00 +02:00
parent 245ce258a9
commit 29bc41f5da

View file

@ -208,7 +208,9 @@ class TagInputControl extends events.EventTarget {
let listItemNode = this._getListItemNodeFromTagName(tagName); let listItemNode = this._getListItemNodeFromTagName(tagName);
const alreadyAdded = !!listItemNode; const alreadyAdded = !!listItemNode;
if (alreadyAdded) { if (alreadyAdded) {
listItemNode.classList.add('duplicate'); if (e.detail.source !== SOURCE_IMPLICATION) {
listItemNode.classList.add('duplicate');
}
} else { } else {
listItemNode = this._createListItemNode(tagName); listItemNode = this._createListItemNode(tagName);
if (!actualTag) { if (!actualTag) {