Error when trying to move cell from row
Question
If try move cell from table on body then appears error

Also error appears on grapesjs demo https://grapesjs.com/demo-newsletter-editor.html
Answers (3)
Problem in Sorter. function dimsFromTarget return empty array, when target element not in draggable list see https://github.com/artf/grapesjs/blob/dev/src/utils/Sorter.js#L644(not found target) https://github.com/artf/grapesjs/blob/dev/src/utils/Sorter.js#L648(return empty array)
And after this function call getTargetModel with target undefined and appears error see https://github.com/artf/grapesjs/blob/dev/src/utils/Sorter.js#L449
Maybe need add check on exists target? Can you fix this error or i need to do pull request?
Can you tell me exactly how to reproduce the error because I don't see any error by dragging off the cell
First error.
- Select cell wrapper(see on screenshot) and try drag it
- In console will appear errors

For more details i attach link on two video files. When i tried to reproduce, i found another bug. Try select first component for example text and move it and after select cell and try drag it. You'll see that line of destination will be in wrong position
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3442
BUG: Error after call `editor.destroy()`
Create editor instance Try destroy Got error
Issue #2498
[Bug] Error when trying to move cell from row.
Bug #2478 after release still exists. Repeat steps and you will get error Uncaught TypeError: Cannot read property 'indexEl' of undefined....
Issue #2876
[Bug] Resizing frame may be positioned around invalid element
Steps to reproduce:open newsletter demo at https://grapesjs.com/demo-newsletter-editor.htmlclean canvasplace "1/3 section"place "Image" in...
Issue #2547
Unable to drag an element if style has bottom or right values
Hi @artf , If any component CSS has bottom or right values , not able to drag them. Values are generating as NaN. Attached the screenshot f...
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.