make logging quiet

This commit is contained in:
Bruno Windels 2019-05-13 17:45:54 +01:00
parent 4ff37ca046
commit a3b02cf0cc
3 changed files with 7 additions and 9 deletions

View file

@ -57,7 +57,6 @@ export default class MessageEditor extends React.Component {
};
this._editorRef = null;
this._autocompleteRef = null;
// document.execCommand("insertBrOnReturn", undefined, true);
}
_updateEditorState = (caret) => {
@ -75,8 +74,9 @@ export default class MessageEditor extends React.Component {
}
_onInput = (event) => {
console.log("finding newValue", this._editorRef.innerHTML);
const {caret, text} = getCaretOffsetAndText(this._editorRef, document.getSelection());
const sel = document.getSelection();
// console.log("finding newValue", this._editorRef.innerHTML, sel);
const {caret, text} = getCaretOffsetAndText(this._editorRef, sel);
this.model.update(text, event.inputType, caret);
}