Issue #4792πŸ’¬ AnsweredOpened Dec 19, 2022by wunksert0 reactions

Drag and drop broken in 20.2

Quick answerby wunksert

Confirmed it's still working in v0.20.1, so it looks like the regression was introduced in v0.20.2

Read full answer below ↓

Question

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome v108Reproducible demo link see belowDescribe the bug How to reproduce the bug?Create a custom componentAdd it to the editor as a component and draggable blockSet the editor to absolute drag mode when the component added, then make the component itself absolute once it's dropped. reset the editor What is the expected behavior? The component stays where it is dropped (this works as expected in v 0.20.1) What is the current behavior? The component snaps to the right side of the screen (this beha...

Answers (4)

wunksertβ€’ Dec 19, 2022

Confirmed it's still working in v0.20.1, so it looks like the regression was introduced in v0.20.2

wunksertβ€’ Dec 19, 2022

The component is no longer draggable once it's added to the canvas either.

artfβ€’ Dec 20, 2022

I'll prepare a fix for the next release.

GJSBlockβ€’ May 17, 2026

Thanks for reporting this, @wunksert. Great question about Drag and drop broken in 20.2. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for the on() event listener method Most operations can be ac...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.