Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CodeMirror style loading bug #1232

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Conversation

jamesnw
Copy link
Contributor

@jamesnw jamesnw commented Oct 25, 2024

In some instances, the CodeMirror styles were being added incorrectly, leading to the code editor not being laid out or styled.

image

The bug appeared to be triggered by a race condition- if the SplitView web component loaded before CodeMirror, CodeMirror would attach styles to the SplitView's shadow root instead of the host Document. This explicitly sets the host Document as the place where styles should be attached.

Copy link

netlify bot commented Oct 25, 2024

Deploy Preview for sass-lang ready!

Name Link
🔨 Latest commit 51ee438
🔍 Latest deploy log https://app.netlify.com/sites/sass-lang/deploys/671c00e934941e00084a5383
😎 Deploy Preview https://deploy-preview-1232--sass-lang.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@nex3 nex3 merged commit ebac47e into sass:main Oct 25, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants