From 9a002eed80cc4d7133aedd2a652d06c4b15f65ce Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 14 Jan 2022 00:48:07 +0000 Subject: [PATCH] FIX: Dropdowns following recent refactoring (#7) --- javascripts/discourse/initializers/setup.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/javascripts/discourse/initializers/setup.js b/javascripts/discourse/initializers/setup.js index 2f5a430..6e28d40 100644 --- a/javascripts/discourse/initializers/setup.js +++ b/javascripts/discourse/initializers/setup.js @@ -293,6 +293,11 @@ export default { el.addEventListener("input", (inputEvent) => debounce(this, processChange, inputEvent, 150) ); + }); + + cooked + .querySelectorAll(".discourse-placeholder-select") + .forEach((el) => { el.addEventListener("change", (inputEvent) => debounce(this, processChange, inputEvent, 150) );