diff -r ea92f4fe783d -r f98efa1bddd1 client/src/components/SlateEditor/index.js --- a/client/src/components/SlateEditor/index.js Mon Oct 08 18:35:47 2018 +0200 +++ b/client/src/components/SlateEditor/index.js Thu Oct 11 11:05:04 2018 +0200 @@ -399,10 +399,6 @@ const {value} = this.state; - // if (e.key === 'Enter' && value.document.text === '') { - // change.removeChild() - // } - if (e.key === 'Enter' && value.document.text !== '') { this.setState({enterKeyValue: 1}) } @@ -414,6 +410,7 @@ } + //TODO review the double enter case. if (e.key === 'Enter' && !this.props.isChecked && this.state.enterKeyValue === 1 && typeof this.props.onEnterKeyDown === 'function') { e.preventDefault(); this.props.onEnterKeyDown();