FIX: Clicking on category autocomplete row (#10457)

FIX: Clicking on category autocomplete row (#10457)

diff --git a/app/assets/javascripts/discourse/app/components/d-editor.js b/app/assets/javascripts/discourse/app/components/d-editor.js
index a6453fa..9b6896e 100644
--- a/app/assets/javascripts/discourse/app/components/d-editor.js
+++ b/app/assets/javascripts/discourse/app/components/d-editor.js
@@ -407,7 +407,10 @@ export default Component.extend({
     $(this.element.querySelector(".d-editor-input")).autocomplete({
       template: findRawTemplate("category-tag-autocomplete"),
       key: "#",
-      afterComplete: () => this._focusTextArea(),
+      afterComplete: value => {
+        this.set("value", value);
+        return this._focusTextArea();
+      },
       transformComplete: obj => {
         return obj.text;
       },

GitHub sha: f2588e1c

This commit appears in #10457 which was approved by eviltrout. It was merged by markvanlan.