fix(client): prevent jumping between editor tabs (#43771)
This commit is contained in:
committed by
GitHub
parent
bba3b6f8a4
commit
461e429598
@ -967,10 +967,13 @@ const Editor = (props: EditorProps): JSX.Element => {
|
|||||||
updateOutputZone();
|
updateOutputZone();
|
||||||
}
|
}
|
||||||
|
|
||||||
editor?.focus();
|
if (hasChangedContents && !isProjectStep()) editor?.focus();
|
||||||
if (isProjectStep() && editor) {
|
|
||||||
if (hasChangedContents) showEditableRegion(editor);
|
|
||||||
|
|
||||||
|
if (isProjectStep() && editor) {
|
||||||
|
if (hasChangedContents) {
|
||||||
|
editor.focus();
|
||||||
|
showEditableRegion(editor);
|
||||||
|
}
|
||||||
// resetting test output
|
// resetting test output
|
||||||
// TODO: DRY this - createOutputNode doesn't also need to set this up.
|
// TODO: DRY this - createOutputNode doesn't also need to set this up.
|
||||||
const testButton = document.getElementById('test-button');
|
const testButton = document.getElementById('test-button');
|
||||||
|
Reference in New Issue
Block a user