mirror of
https://github.com/discourse/discourse.git
synced 2025-06-08 00:27:32 +08:00
FIX: Update preview when autocomplete is clicked (#10430)
This commit is contained in:

committed by
GitHub

parent
d0d651d8bc
commit
b9891e3def
@ -188,7 +188,9 @@ export default Component.extend({
|
|||||||
dataSource: term => this.userSearchTerm.call(this, term),
|
dataSource: term => this.userSearchTerm.call(this, term),
|
||||||
key: "@",
|
key: "@",
|
||||||
transformComplete: v => v.username || v.name,
|
transformComplete: v => v.username || v.name,
|
||||||
afterComplete() {
|
afterComplete: value => {
|
||||||
|
this.composer.set("reply", value);
|
||||||
|
|
||||||
// ensures textarea scroll position is correct
|
// ensures textarea scroll position is correct
|
||||||
schedule("afterRender", () => $input.blur().focus());
|
schedule("afterRender", () => $input.blur().focus());
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user