From ebac47e9665ebf8090a19099ccf7becd9b834d20 Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Fri, 25 Oct 2024 17:51:59 -0400 Subject: [PATCH] Fix CodeMirror style loading bug (#1232) --- source/assets/js/playground.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/assets/js/playground.ts b/source/assets/js/playground.ts index 28e1d3df5..331a7bbe6 100644 --- a/source/assets/js/playground.ts +++ b/source/assets/js/playground.ts @@ -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 => { @@ -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, });