Skip to content

Commit ab79dcd

Browse files
author
Ives van Hoorne
committed
Don't focus editor on module change when on touch
1 parent 384c9ea commit ab79dcd

File tree

1 file changed

+3
-1
lines changed
  • packages/app/src/app/components/CodeEditor/CodeMirror

1 file changed

+3
-1
lines changed

packages/app/src/app/components/CodeEditor/CodeMirror/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,9 @@ class CodemirrorEditor extends React.Component<Props, State> implements Editor {
383383

384384
setCurrentModule = (moduleId: string) => {
385385
this.closeFuzzySearch();
386-
this.codemirror.focus();
386+
if (!window.__isTouch) {
387+
this.codemirror.focus();
388+
}
387389
if (this.props.onModuleChange) {
388390
this.props.onModuleChange(moduleId);
389391
}

0 commit comments

Comments
 (0)