Skip to content

BUG: Dragging an elements with 0 height causes unexpected behaviour #6425

@asabryil

Description

@asabryil

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions