Files
outline/app/components
Tom MoorandClaude Fable 5 8be4a0ac34 fix: Crash when dropping outside editor after drag began over it (#13037)
* fix: Crash when dropping outside editor after drag began over it

The EditorAwareHTML5Backend suppresses react-dnd's top-level handlers for
events within the ProseMirror editor, so a drag that begins or enters the
page over the editor is never registered with react-dnd. When such a drag
was then dropped outside the editor, the backend's unguarded drop handler
called actions.hover and threw "Invariant Violation: Cannot call hover
while not dragging". Skip the drop handler when no drag is registered,
mirroring the isDragging guard react-dnd already applies to dragover.

Fixes OUTLINE-CLOUD-CPR

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B37TdpqjKYnLAARomVBjUc

* Remove EditorAwareHTML5Backend tests

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B37TdpqjKYnLAARomVBjUc

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-07-18 12:39:13 -04:00
..
2025-12-23 11:53:41 -05:00
2026-07-12 07:10:28 -04:00
2023-02-25 12:03:05 -08:00
2024-11-02 10:58:03 -07:00
2025-03-15 15:06:12 -07:00
2026-07-12 07:10:28 -04:00
2026-04-18 15:12:57 -04:00
2023-09-23 14:31:55 -04:00
2026-07-10 12:35:21 +02:00
2026-06-29 17:11:02 -04:00
2026-07-12 07:10:28 -04:00