Skip to content

Commit

Permalink
clear highlight state on theme selector change
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 committed May 16, 2022
1 parent 7284f81 commit bab13b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit bab13b0

Please sign in to comment.