fix(client): re-ref editor (#42799)

This commit is contained in:
Shaun Hamilton
2021-07-09 04:59:11 +01:00
committed by GitHub
parent d95962e405
commit 0891d41c35
2 changed files with 937 additions and 915 deletions

File diff suppressed because it is too large Load Diff

View File

@ -60,7 +60,7 @@ function Hotkeys({
FOCUS_EDITOR: (e: React.KeyboardEvent) => {
e.preventDefault();
if (editorRef && editorRef.current) {
editorRef.current.getWrappedInstance().focusOnEditor();
editorRef.current.getWrappedInstance().editor.focus();
}
},
NAVIGATION_MODE: () => setEditorFocusability(false),