Issue #1672Opened December 20, 2018by TanSY992 reactions

[Bug] Item drop duplicates after opening Layers Panel.

Question

Hi i'm a novice posting an issue for the first time. Please let me know if you need any more information for the query.

grapesjs version:0.14.48 Steps to reproduce: 1.Open the site click on the layers button 2.Return to the blocks button and drag and drop any block into the field.

tested on:https://grapesjs.com/demo.html video:https://drive.google.com/file/d/1EwMK5zs6cdLx8nU3MvRj4huJE-Lu8YTm/view?usp=sharing

Answers (3)

narendravaghelaDecember 20, 20181 reactions

@artf After upgrading to 0.14.48, it is throwing an error while loading data from remote source as well dragging new elements on canvas.

Uncaught TypeError: s is not a constructor
    at r.addToCollection (grapes.js:39597)
    at r.addTo (grapes.js:39576)
    at v (grapes.js:4743)
    at m (grapes.js:4728)
    at d (grapes.js:4527)
    at r.c.trigger (grapes.js:4718)
    at r._onModelEvent (grapes.js:5559)
    at v (grapes.js:4744)
    at m (grapes.js:4729)
    at d (grapes.js:4527)

And,

grapes.js:53487 Uncaught TypeError: Cannot read property 'index' of undefined
    at r.move (grapes.js:53487)
    at grapes.js:53454
    at Array.forEach (<anonymous>)
    at r.endMove (grapes.js:53453)
    at I (grapes.js:21273)
    at HTMLDocument.<anonymous> (grapes.js:21286)
    at HTMLDocument.<anonymous> (grapes.js:20633)
artfDecember 20, 20180 reactions

Ok thanks guys, I'll publish soon a new release with this hotfix

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.