Skip to content

Commit e996382

Browse files
committed
fixup: disable EditContext usage in codemirror?
1 parent 85126c7 commit e996382

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/compass-editor/src/editor.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ import { rgba } from 'polished';
7676
import { prettify as _prettify } from './prettify';
7777
import { ActionButton, FormatIcon } from './actions';
7878

79+
// https://github.com/codemirror/dev/issues/1458
80+
// https://issues.chromium.org/issues/375711382?pli=1
81+
(EditorView as any).EDIT_CONTEXT = false;
82+
7983
const editorStyle = css({
8084
fontSize: 13,
8185
fontFamily: fontFamilies.code,

0 commit comments

Comments
 (0)