Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- handleReturn = (e) => {
- const { editorState } = this.state;
- const block = getSelectedBlock(editorState);
- if (isEmptyListItem(block)) {
- this.handleReturnForListItem(block);
- return 'handled';
- }
- return 'not-handled';
- }
Add Comment
Please, Sign In to add comment