diff --git a/app/assets/javascripts/discourse/app/controllers/group-index.js b/app/assets/javascripts/discourse/app/controllers/group-index.js index 570a5558c6a..7e495191d28 100644 --- a/app/assets/javascripts/discourse/app/controllers/group-index.js +++ b/app/assets/javascripts/discourse/app/controllers/group-index.js @@ -216,12 +216,20 @@ export default Controller.extend({ @action bulkSelectAll() { - $("input.bulk-select:not(:checked)").click(); + document + .querySelectorAll("input.bulk-select:not(:checked)") + .forEach((checkbox) => { + checkbox.checked = true; + }); }, @action bulkClearAll() { - $("input.bulk-select:checked").click(); + document + .querySelectorAll("input.bulk-select:checked") + .forEach((checkbox) => { + checkbox.checked = false; + }); }, @action