FIX: Update preview when autocomplete is clicked (#10430)
This commit is contained in:
parent
d0d651d8bc
commit
b9891e3def
|
@ -188,7 +188,9 @@ export default Component.extend({
|
|||
dataSource: term => this.userSearchTerm.call(this, term),
|
||||
key: "@",
|
||||
transformComplete: v => v.username || v.name,
|
||||
afterComplete() {
|
||||
afterComplete: value => {
|
||||
this.composer.set("reply", value);
|
||||
|
||||
// ensures textarea scroll position is correct
|
||||
schedule("afterRender", () => $input.blur().focus());
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue