fix(client): only jump to editable region on reset (#43748)
If the code has changed without the user typing (e.g. they've pushed the restart button), then we jump them back to the editable region. Otherwise (e.g. they've typed in the editor) we reset the display, but do not move the editor.
This commit is contained in:
committed by
GitHub
parent
df8dc9b9c6
commit
e3e794ddef
@ -969,7 +969,7 @@ const Editor = (props: EditorProps): JSX.Element => {
|
||||
|
||||
editor?.focus();
|
||||
if (isProjectStep() && editor) {
|
||||
showEditableRegion(editor);
|
||||
if (hasChangedContents) showEditableRegion(editor);
|
||||
|
||||
// resetting test output
|
||||
// TODO: DRY this - createOutputNode doesn't also need to set this up.
|
||||
|
Reference in New Issue
Block a user