Issue #2546Opened February 3, 2020by AbdiasM0 reactions

Unable to drag cell inside row

Question

@artf Could you please take a look at this.

On deleting a cell and trying to add a new cell from the blocks manager, it gives the following error: "Invalid target position: Target collection not found, Target is not droppable, accepts [undefined], Component not draggable, acceptable by [undefined]".

These are my cell and row components:

comps.addType("cell", {
    isComponent: el => el.tagName == "TD",
    model: cellType.model.extend({
        defaults: {
            ...cellType.model.prototype.defaults,
            name: 'mycell',
Code SnippetTEXT
draggable: ['tr'],
                droppable: true,
                resizable: true,
                removable: true,
                select: true,
        })
    });

    comps.addType("row", {
        isComponent: el => el.tagName == "TR",
        model: rowType.model.extend({
            defaults: {
                ...rowType.model.prototype.defaults,
                name: 'myrow',
                draggable: ['tbody'],
                droppable : ['td'],
                resizable: true,
                select: true,
                highlightable: true              
            },
        })
    });

The cell gets added if I drag it over another cell. How can I add the cell if I drag it over the empty space in row element.

Please see attached gif.
![DragCell](https://user-images.githubusercontent.com/18558443/73633315-64439700-4684-11ea-89d5-59c9f732c2c4.gif)

Answers (2)

artfFebruary 4, 20200 reactions

Please, create a reproducible demo of your issue

no-response[bot]February 14, 20200 reactions

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

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.