Skip to content

Commit

Permalink
Remove widget on editor change
Browse files Browse the repository at this point in the history
  • Loading branch information
dem4ron committed Jan 21, 2025
1 parent a7ada7d commit 67925e4
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ export const CodeMirror = forwardRef(function _CodeMirror(
updateLocalStorageValueOnDebounce(e.state.doc.toString(), e.view)
},
() => setHighlightedLineColor(INFO_HIGHLIGHT_COLOR),
() => setShouldShowInformationWidget(false),
() =>
setInformationWidgetData({
html: '',
line: 0,
status: 'SUCCESS',
}),
() => setHasCodeBeenEdited(true),
() => setUnderlineRange(undefined),
() => {
Expand Down

0 comments on commit 67925e4

Please sign in to comment.