Guest User

Untitled

a guest
Aug 16th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. handleReturnForListItem = (block) => {
  2. const { editorState } = this.state;
  3. const depth = block.getDepth();
  4. if (depth > 0) {
  5. this.onChange(decreaseBlockDepth(block, editorState));
  6. } else if (depth === 0) {
  7. this.onChange(changeBlockType(editorState));
  8. }
  9. }
Add Comment
Please, Sign In to add comment