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
1 changed files with 2 additions and 2 deletions

View File

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