Turn off style toggle on Enter

This commit is contained in:
pjsier 2017-11-04 13:58:01 -05:00 committed by Shawn Erquhart
parent 83a1d34291
commit 2a4af64a71

View File

@ -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) => {