Fix Activities type dropdowns [SCI-8498]

Co-authored-by: Sboursen <dev.sboursen@gmail.com>
This commit is contained in:
sboursen-scinote 2023-06-02 10:39:56 +02:00
parent c58a852e2a
commit 456670dd15

View file

@ -716,7 +716,9 @@ var dropdownSelector = (function() {
} else {
// Or delete specific one
deleteValue(selector, container, tagLabel.data('ds-tag-id'), tagLabel.data('ds-tag-group'));
removeOptionFromSelector(selector, tagLabel.data('ds-tag-id'));
if (selector.data('config').tagClass) {
removeOptionFromSelector(selector, tagLabel.data('ds-tag-id'));
}
}
}, 350);
}
@ -1010,7 +1012,9 @@ var dropdownSelector = (function() {
currentData = getCurrentData($(selector).next());
currentData.push(value);
setData($(selector), currentData, skip_event);
appendOptionToSelector(selector, value);
if (selector.data('config').tagClass) {
appendOptionToSelector(selector, value);
}
return this;
},