Skip to content

Commit ebac47e

Browse files
authored
Fix CodeMirror style loading bug (#1232)
1 parent 05d9a61 commit ebac47e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/assets/js/playground.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ function setupPlayground(): void {
8585
// Setup input Sass view
8686
const editor = new EditorView({
8787
doc: playgroundState.inputValue,
88+
root: document,
8889
extensions: [
8990
...editorSetup,
9091
EditorView.updateListener.of(v => {
@@ -106,6 +107,7 @@ function setupPlayground(): void {
106107

107108
// Setup CSS view
108109
const viewer = new EditorView({
110+
root: document,
109111
extensions: [...outputSetup],
110112
parent: document.querySelector('.sl-code-is-compiled') || undefined,
111113
});

0 commit comments

Comments
 (0)