Guest User

Untitled

a guest
Aug 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. handleReturn = (e) => {
  2. const { editorState } = this.state;
  3. const block = getSelectedBlock(editorState);
  4.  
  5. if (isEmptyListItem(block)) {
  6. this.handleReturnForListItem(block);
  7. return 'handled';
  8. }
  9.  
  10. return 'not-handled';
  11. }
Add Comment
Please, Sign In to add comment