remove error message from chat input on submit
This commit is contained in:
parent
9814e4ebaf
commit
7898482c58
@ -153,7 +153,7 @@ class MessageForm extends PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleSendMessage(escapeHtml(msg));
|
handleSendMessage(escapeHtml(msg));
|
||||||
this.setState({ message: '', hasErrors: false });
|
this.setState({ message: '', error: '', hasErrors: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
setMessageHint() {
|
setMessageHint() {
|
||||||
|
@ -262,7 +262,7 @@ class MessageForm extends PureComponent {
|
|||||||
const callback = this.typingIndicator ? stopUserTyping : null;
|
const callback = this.typingIndicator ? stopUserTyping : null;
|
||||||
|
|
||||||
handleSendMessage(escapeHtml(msg));
|
handleSendMessage(escapeHtml(msg));
|
||||||
this.setState({ message: '', hasErrors: false, showEmojiPicker: false }, callback);
|
this.setState({ message: '', error: '', hasErrors: false, showEmojiPicker: false }, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
handleEmojiSelect(emojiObject) {
|
handleEmojiSelect(emojiObject) {
|
||||||
|
Loading…
Reference in New Issue
Block a user