From 153a5ac4b97dc87af25b4cdf08be2ebc2fbb1ece Mon Sep 17 00:00:00 2001 From: pjsier Date: Sat, 4 Nov 2017 13:58:01 -0500 Subject: [PATCH] Turn off style toggle on Enter --- .../Widgets/Markdown/MarkdownControl/VisualEditor/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Widgets/Markdown/MarkdownControl/VisualEditor/index.js b/src/components/Widgets/Markdown/MarkdownControl/VisualEditor/index.js index 0b4220cb4fa5..22177e1cf2d9 100644 --- a/src/components/Widgets/Markdown/MarkdownControl/VisualEditor/index.js +++ b/src/components/Widgets/Markdown/MarkdownControl/VisualEditor/index.js @@ -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) => {