Files
outline/shared/editor/extensions
Tom MoorandClaude c265112bd0 fix: Guard Mermaid mouse handlers against text node event targets (#14717)
In Firefox, a mousedown in the editor can have a Text node as its target.
The Mermaid plugin cast the target to HTMLElement and called closest(),
which threw and stopped ProseMirror from handling the event. Resolve the
target to its element (or parent element) before calling element methods.

Sentry: OUTLINE-CLOUD-DFP


Claude-Session: https://claude.ai/code/session_016MJXFcsyhupagpKC181rqW

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-25 19:20:00 -05:00
..