Skip to content

Commit 79f64a7

Browse files
committed
Fix: restore flag to prevent every keystroke from logging
1 parent 394c0f2 commit 79f64a7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bases/rsptx/interactives/runestone/activecode/js/activecode.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ export class ActiveCode extends RunestoneBase {
343343
act: "edit",
344344
div_id: this.divid,
345345
});
346+
editor.acEditEvent = true; // this is set to false when we programmatically change the editor value, so we can ignore those changes in the log and not mark the activity as answered.
346347
}
347348
if (this.firstAfterRun) {
348349
this.firstAfterRun = false;
@@ -2468,6 +2469,7 @@ Yet another is that there is an internal error. The internal error message is:
24682469
e.redrawConnectors();
24692470
});
24702471
}
2472+
this.editor.acEditEvent = false;
24712473
}
24722474
}
24732475

0 commit comments

Comments
 (0)