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?
- 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 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.
Issue #4323
BUG: Performance issue while dragging component to canvas when you have 2k component on canvas
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Google Chrome Version 101.0.4951.41 (Officia...
Issue #6515
BUG: Resizing an element affects all elements with the same class
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 136.0.7103.93 Reproducible demo lin...
Issue #6324
BUG: sorter.setDragHelper is not a function on block drag
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? 131.0.6778.86Reproducible demo link https://...
Issue #6318
BUG: Unable to use transparent fill in Block media svg
GrapesJS version[X] I confirm to use the latest version of [email protected] when this issue was filedWhat browser are you using? Fir...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.