You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 7, 2026. It is now read-only.
I couldn't build a repro because the Glitch doesn't allow to require prosemirror-dropcursor, but the bug is simple:
Install dropcursor
Write a custom drop handler that calls event.preventDefault(). I do not return anything from this handler.
Drop something: the cursor stays up for 5 secondes instead of 20ms because "dropcursor" never catches the drop event
It seems to me that dropcursor should have a kind of "priority" over the default drop handlers. Removing preventDefault() from my custom handler is possible but perhaps not recommended are you are supposed to call it in drop event handlers when you accept the drop, unless I misunderstand something specific to prosemirror.
Returning "true" at the end seems to have no effect.
Hi,
I couldn't build a repro because the Glitch doesn't allow to require
prosemirror-dropcursor, but the bug is simple:event.preventDefault(). I do not return anything from this handler.It seems to me that dropcursor should have a kind of "priority" over the default drop handlers. Removing
preventDefault()from my custom handler is possible but perhaps not recommended are you are supposed to call it in drop event handlers when you accept the drop, unless I misunderstand something specific to prosemirror.Returning "true" at the end seems to have no effect.