Invalid array length when dragging component onto canvas
Here's another clue... once the canvas "breaks" (which I can reliable make happen by refreshing the page and forcing a load... this behavior doesn't happen on new templates, only when the template is loaded from my custom storage, but I verified the JSON hasn't been corrupted), if I take a component and drag it over t...
Read full answer below ↓Question
Not sure why, But all of a sudden, when I start dragging components onto a canvas, I get this: This seems to happen when I edit a template, save it, and reload it. It also seems to happen when I try to drag a new component to the LAST element of the page; if I try to drag and element inside of a DIV container inside the template, it's fine. But if I try to drag it at the beginning of the template, I get the duplicate items I referenced in #2494 . I have a feeling this is related; somewhere there's a null array that's not supposed to be null. WIthout trying to erect an entire sandbox to repro...
Answers (2)
Here's another clue... once the canvas "breaks" (which I can reliable make happen by refreshing the page and forcing a load... this behavior doesn't happen on new templates, only when the template is loaded from my custom storage, but I verified the JSON hasn't been corrupted), if I take a componen...
OK, I managed to stick grapes.js into my Angular project and reference it instead of the minified version, so I could get more insight into what is going on. The problem seems to be in Sorter.js. The findPosition method is tasked with figuring out which element the cursor is hovering over. For some...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3253
How does the property color changes to blue when value changed?
Hi, We are encountering an issue - color of property name such as "Width" is blue when dragging a new component to canvas, but we don't mod...
Issue #3138
Prevent <TABLE>from being modified during saving.
Hi All, I'm getting an issue, when saving a custom HTML component (just a table), grapes JS will modify it. before save after save. Is it p...
Issue #3414
Component model is not reset when create new drag
When dragging a component from right panel component model doesn't set to default value but has value of previously added component
Issue #3139
FEAT: Disable <table> being auto amended during save
I'm getting an issue, when saving a custom HTML component (just a table), grapes JS will modify it. before save after save. So I want to be...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.