Issue #2478Opened December 29, 2019by obrazkow0 reactions

Error when trying to move cell from row

Question

If try move cell from table on body then appears error

image

Also error appears on grapesjs demo https://grapesjs.com/demo-newsletter-editor.html

Answers (3)

obrazkowDecember 29, 20190 reactions

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?

artfJanuary 2, 20200 reactions

Can you tell me exactly how to reproduce the error because I don't see any error by dragging off the cell

obrazkowJanuary 2, 20200 reactions

First error.

  1. Select cell wrapper(see on screenshot) and try drag it
  2. In console will appear errors image

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

https://dropmefiles.com/wJvVt

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.