Skip to content

Prevent crash when firstChild is not a text node#52

Merged
OS-ruineves merged 1 commit intomain-osfrom
fix-mouse-selection-crash-clean
Apr 30, 2026
Merged

Prevent crash when firstChild is not a text node#52
OS-ruineves merged 1 commit intomain-osfrom
fix-mouse-selection-crash-clean

Conversation

@OS-ruineves
Copy link
Copy Markdown

This attempts to fix a crash when selecting code with the mouse. It seems to be caused by invisible elements that fall into spots where Monaco expects text nodes instead. This only happens when rendered inside the shadow DOM

@OS-ruineves OS-ruineves requested review from os-lmo and tbragaf April 30, 2026 15:10
@OS-ruineves OS-ruineves self-assigned this Apr 30, 2026
@OS-ruineves OS-ruineves changed the title Reapply changes Prevent crash when firstChild is not a text node Apr 30, 2026
@OS-ruineves OS-ruineves merged commit c195fdf into main-os Apr 30, 2026
7 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