FIX: Update preview when autocomplete is clicked (#10430)

This commit is contained in:
Mark VanLandingham 2020-08-13 15:42:38 -05:00 committed by GitHub
parent d0d651d8bc
commit b9891e3def
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

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