Skip to content

Commit

Permalink
Fix CodeMirror style loading bug (#1232)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnw authored Oct 25, 2024
1 parent 05d9a61 commit ebac47e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/assets/js/playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ function setupPlayground(): void {
// Setup input Sass view
const editor = new EditorView({
doc: playgroundState.inputValue,
root: document,
extensions: [
...editorSetup,
EditorView.updateListener.of(v => {
Expand All @@ -106,6 +107,7 @@ function setupPlayground(): void {

// Setup CSS view
const viewer = new EditorView({
root: document,
extensions: [...outputSetup],
parent: document.querySelector('.sl-code-is-compiled') || undefined,
});
Expand Down

0 comments on commit ebac47e

Please sign in to comment.