diff --git a/app/javascript/components/bootcamp/SolveExercisePage/CodeMirror/CodeMirror.tsx b/app/javascript/components/bootcamp/SolveExercisePage/CodeMirror/CodeMirror.tsx index 20eabc6533..1aa91e2e22 100644 --- a/app/javascript/components/bootcamp/SolveExercisePage/CodeMirror/CodeMirror.tsx +++ b/app/javascript/components/bootcamp/SolveExercisePage/CodeMirror/CodeMirror.tsx @@ -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), () => {