Skip to content
Snippets Groups Projects
Unverified Commit 505c7db1 authored by Tomasz Knapik's avatar Tomasz Knapik
Browse files

Disable notes submit button when no text

parent 6b460a95
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ export default class RichTextForm extends React.Component { ...@@ -44,7 +44,7 @@ export default class RichTextForm extends React.Component {
} }
isEmpty = () => { isEmpty = () => {
return !this.state.value; return !this.state.value.getEditorState().getCurrentContent().hasText();
} }
handleValueChange = value => { handleValueChange = value => {
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment