Skip to content

Commit

Permalink
Fix backport
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Dec 12, 2019
1 parent 64c17a9 commit 0d4851b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,11 @@ function _Editor({ previousStateLocation = 'stored' }: EditorProps) {

// Fire and forget.
$.ajax(loadFrom).done(async data => {
const coreEditor = editor.getCoreEditor();
await editor.update(data, true);
editor.moveToNextRequestEdge(false);
coreEditor.clearSelection();
editor.clearSelection();
editor.highlightCurrentRequestsAndUpdateActionBar();
coreEditor.getContainer().focus();
editor.container.focus();
});
}
};
Expand Down

0 comments on commit 0d4851b

Please sign in to comment.