borrow react-ContentEditable component

This commit is contained in:
Ginger Wong
2020-08-17 01:12:21 -07:00
parent 979651a925
commit 70f3d7e165
3 changed files with 60 additions and 50 deletions

View File

@@ -128,17 +128,17 @@ export default class Chat extends Component {
this.disableChat()
}
handleSubmitChatButton(event) {
const { inputValue } = this.state;
var value = inputValue.trim();
if (value) {
this.submitChat(value);
event.preventDefault();
return false;
}
event.preventDefault();
return false;
}
// handleSubmitChatButton(event) {
// const { inputValue } = this.state;
// var value = inputValue.trim();
// if (value) {
// this.submitChat(value);
// event.preventDefault();
// return false;
// }
// event.preventDefault();
// return false;
// }
submitChat(content) {
if (!content) {