Issue #5362πŸ’¬ AnsweredOpened Sep 5, 2023by rozek0 reactions

Draggable/droppable property functions not called while dragging

Quick answerby rozek

even with draggable and droppable set to true, I cannot drag one element into another

Read full answer below ↓

Question

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 1.56.20 Chromium: 115.0.5790.171 (Offizieller Build) (arm64) Reproducible demo link none Describe the bug I've defined my own component types with type specific drag-and-drop rules: but the configured functions are never invoked. Instead, dragging works without any constraints and dropping works into the wrapper element only. A potentially important detail: my dragMode is set to 'absolute' Code of Conduct [X] I agree to follow this project's Code of Conduct

Answers (4)

rozekβ€’ Sep 5, 2023

even with draggable and droppable set to true, I cannot drag one element into another

rozekβ€’ Sep 6, 2023

A first workaround which helps dropping components into other components:remove dragMode:'absolute', from grapesjs.init({...})instead, add dmode:'absolute', to model.defaults of every component type you want to be draggable (and, perhaps, droppable) Unfortunately, however, absolute positions are no...

artfβ€’ Sep 9, 2023

In absolute mode, there is no concept of moving components inside/outside of other components. A component in absolute mode is only updated in style position, it's not moved in the DOM, that's why draggable/droppable does not make sense to work here. Please @rozek avoid opening BUG issues if you do...

GJS Helperβ€’ May 17, 2026

The issue you're experiencing, where your custom draggable and droppable functions are not invoked when dragMode is set to 'absolute', is expected behavior rather than a bug. The dragMode: 'absolute' setting fundamentally changes how GrapesJS handles drag-and-drop operations, focusing on free-form...

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.