fix (client): added editor refs to all the instances of Editor to enable hotkey focus (#41757)

This commit is contained in:
Hassaan Pasha
2021-04-13 16:29:41 +05:00
committed by GitHub
parent 1958d116d0
commit 9ce5a09593

View File

@ -223,6 +223,7 @@ class MultifileEditor extends Component {
description={targetEditor === 'indexjsx' ? description : null}
fileKey='indexjsx'
key='indexjsx'
ref={editorRef}
resizeProps={resizeProps}
theme={editorTheme}
/>
@ -258,6 +259,7 @@ class MultifileEditor extends Component {
description={targetEditor === 'indexcss' ? description : null}
fileKey='indexcss'
key='indexcss'
ref={editorRef}
resizeProps={resizeProps}
theme={editorTheme}
/>
@ -275,6 +277,7 @@ class MultifileEditor extends Component {
description={targetEditor === 'indexjs' ? description : null}
fileKey='indexjs'
key='indexjs'
ref={editorRef}
resizeProps={resizeProps}
theme={editorTheme}
/>