Skip to content

Commit 2548a06

Browse files
committed
Fix hidden editor in embed mobile view
1 parent 03737cf commit 2548a06

File tree

1 file changed

+2
-0
lines changed
  • packages/app/src/app/components/CodeEditor/CodeMirror

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ class CodemirrorEditor extends React.Component<Props, State> implements Editor {
7979
this.props.width !== nextProps.width ||
8080
this.props.height !== nextProps.height
8181
) {
82+
// eslint-disable-next-line no-unused-expressions
83+
this.codemirror?.refresh();
8284
return true;
8385
}
8486

0 commit comments

Comments
 (0)