Skip to content

Commit

Permalink
Turn off style toggle on Enter
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsier authored and erquhart committed Nov 7, 2017
1 parent 83a1d34 commit 2a4af64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class Editor extends Component {
return change.insertFragment(doc);
}

hasMark = type => this.state.editorState.marks.some(mark => mark.type === type);
hasMark = type => this.state.editorState.activeMarks.some(mark => mark.type === type);
hasBlock = type => this.state.editorState.blocks.some(node => node.type === type);

handleMarkClick = (event, type) => {
Expand Down

0 comments on commit 2a4af64

Please sign in to comment.