|
@@ -57,6 +57,7 @@ BlazeComponent.extendComponent({
|
|
|
|
|
|
// We keep the form opened, empty it, and scroll to it.
|
|
|
textarea.val('').focus();
|
|
|
+ autosize.update(textarea);
|
|
|
if (position === 'bottom') {
|
|
|
this.scrollToBottom();
|
|
|
}
|
|
@@ -180,7 +181,11 @@ BlazeComponent.extendComponent({
|
|
|
|
|
|
onRendered() {
|
|
|
const editor = this;
|
|
|
- this.$('textarea').escapeableTextComplete([
|
|
|
+ const $textarea = this.$('textarea');
|
|
|
+
|
|
|
+ autosize($textarea);
|
|
|
+
|
|
|
+ $textarea.escapeableTextComplete([
|
|
|
// User mentions
|
|
|
{
|
|
|
match: /\B@(\w*)$/,
|