| changeset 194 | d19ba6045e82 |
| parent 191 | 3f71ad81a5a9 |
--- a/client/src/components/NoteInput.js Wed Dec 05 19:00:08 2018 +0100 +++ b/client/src/components/NoteInput.js Wed Dec 05 23:52:25 2018 +0100 @@ -20,8 +20,12 @@ } onEditorChange = (e) => { + let text = ''; + if(this.editor) { + text = this.editor.asPlain(); + } this.setState({ - buttonDisabled: e.value.document === 0, + buttonDisabled: text.length === 0, startedAt: e.startedAt, finishedAt: e.finishedAt });