Issue #6425πŸ’¬ AnsweredOpened Feb 27, 2025by asabryil0 reactions

Dragging an elements with 0 height causes unexpected behaviour

Quick answerby GJS Helper

This is a known behavior in GrapesJS related to how its drag-and-drop system (which often relies on visual bounding boxes) interacts with elements that have zero height. While ideally, the drag-and-drop mechanism should be robust enough to handle elements regardless of their visual dimensions, a height: 0 (and min-hei...

Read full answer below ↓

Question

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? All browsers, latest version Reproducible demo link Can be reproduced on offical demo Describe the bug How to reproduce the bug? Add a block, set the height and min-height to 0 Add another normal block Add a container Try to drop the 0 height block to the container, it will remove or duplicate some components and in some instances, the 0 height block cannot be dragged up/down. What is the expected behavior? Dragging a block shouldn't depend on the height of the element. What is the current behavio...

Answers (1)

GJS Helperβ€’ May 17, 2026

This is a known behavior in GrapesJS related to how its drag-and-drop system (which often relies on visual bounding boxes) interacts with elements that have zero height. While ideally, the drag-and-drop mechanism should be robust enough to handle elements regardless of their visual dimensions, a he...

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.