mirror of
https://github.com/outline/outline.git
synced 2026-11-27 16:08:58 +03:00
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>