Dragging blocks from the Inserter Library does not "cleanup" on drop #55173
Labels
[Feature] Inserter
The main way to insert blocks using the + button in the editing interface
Needs Testing
Needs further testing to be confirmed.
[Status] Stale
Gives the original author opportunity to update before closing. Can be reopened as needed.
[Type] Bug
An existing feature does not function as intended
Description
When dragging a block from the Inserter Library and dropping the block into the Block List, the draggable component does not seem to reset properly resulting in a drag cursor when no longer dragging.
We have a workaround for this which listens to the
dragend
event and manually removes theis-dragging-components-draggable
class from the<body/>
tag, see impress-org/givewp#7014.Note: We are not able to reproduce this when using the WordPress Block Editor, but rather when using the
@wordpress
components.Update: This seems to only be an issue when the blocks do not support multiple instances.
Workaround
We have a temporary work around to reset the drag cursor by listening to the
dragend
event.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
The text was updated successfully, but these errors were encountered: