Issue #6425Opened February 27, 2025by asabryil0 reactions

BUG: Dragging an elements with 0 height causes unexpected behaviour

Question

GrapesJS version

  • 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?

  1. Add a block, set the height and min-height to 0
  2. Add another normal block
  3. Add a container
  4. 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 behavior? Dragging a block depends on the height of the element, and it must be greater than 0 to work as expected.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Answers (0)

No answers yet.

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.