diff --git a/components/Editor.js b/components/Editor.js index 17dfd98..7ab5d75 100644 --- a/components/Editor.js +++ b/components/Editor.js @@ -253,7 +253,7 @@ class Editor extends React.Component { } } - updateTheme = theme => this.updateState({ theme }) + updateTheme = theme => this.updateState({ theme, highlights: null }) updateHighlights = updates => this.setState(({ highlights = {} }) => ({ highlights: {