FIX: correctly set value on textarea interactor (#21990)
This would mostly work without it by mutation but could cause subtle bugs.
This commit is contained in:
parent
f9bd32af2d
commit
699f3e7014
|
@ -92,7 +92,7 @@ export default class ChatComposer extends Component {
|
||||||
@action
|
@action
|
||||||
didUpdateMessage() {
|
didUpdateMessage() {
|
||||||
this.cancelPersistDraft();
|
this.cancelPersistDraft();
|
||||||
this.composer.value = this.currentMessage.message;
|
this.composer.textarea.value = this.currentMessage.message;
|
||||||
this.persistDraft();
|
this.persistDraft();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -417,7 +417,7 @@ export default class ChatComposer extends Component {
|
||||||
},
|
},
|
||||||
afterComplete: (text, event) => {
|
afterComplete: (text, event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
this.composer.value = text;
|
this.composer.textarea.value = text;
|
||||||
this.composer.focus();
|
this.composer.focus();
|
||||||
this.captureMentions();
|
this.captureMentions();
|
||||||
},
|
},
|
||||||
|
@ -433,7 +433,7 @@ export default class ChatComposer extends Component {
|
||||||
treatAsTextarea: true,
|
treatAsTextarea: true,
|
||||||
afterComplete: (text, event) => {
|
afterComplete: (text, event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
this.composer.value = text;
|
this.composer.textarea.value = text;
|
||||||
this.composer.focus();
|
this.composer.focus();
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -450,7 +450,7 @@ export default class ChatComposer extends Component {
|
||||||
key: ":",
|
key: ":",
|
||||||
afterComplete: (text, event) => {
|
afterComplete: (text, event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
this.composer.value = text;
|
this.composer.textarea.value = text;
|
||||||
this.composer.focus();
|
this.composer.focus();
|
||||||
},
|
},
|
||||||
treatAsTextarea: true,
|
treatAsTextarea: true,
|
||||||
|
|
Loading…
Reference in New Issue