Use input model

This commit is contained in:
Pavel Djundik 2018-07-08 21:21:24 +03:00 committed by Pavel Djundik
parent a229138ca6
commit c20af6329b

View file

@ -60,13 +60,13 @@ export default {
$(this.$refs.input).trigger("click").trigger("focus");
const target = this.channel.id;
const text = input.value;
const text = this.channel.pendingMessage;
if (text.length === 0) {
return false;
}
input.value = "";
this.channel.pendingMessage = "";
// resetInputHeight(input.get(0));
if (text.charAt(0) === "/") {