FIX: Clicking on category autocomplete row (#10457)

This commit is contained in:
Mark VanLandingham 2020-08-17 11:02:00 -05:00 committed by GitHub
parent 6d0eb7178d
commit f2588e1c85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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;
},