diff --git a/isic/ingest/templates/ingest/cohort_publish.html b/isic/ingest/templates/ingest/cohort_publish.html index 32a7d0ebc..cc524d380 100644 --- a/isic/ingest/templates/ingest/cohort_publish.html +++ b/isic/ingest/templates/ingest/cohort_publish.html @@ -122,9 +122,9 @@ entries: [], init() { - const select = document.getElementById("additional-collections-selection"); - select.addEventListener("change", () => { - this.fetchSharingInfo(); + // Select2 fires jQuery events, not native DOM events; addEventListener won't work here. + $("#additional-collections-selection").on("change", async () => { + await this.fetchSharingInfo(); }); },