[BUG]: When dragging a block over the canvas, JS in script, is appended in canvas before dropping the block.
Question
You're submitting a BUG
Are you using the latest release (older versions are NOT supported)?
v0.14.57
Are you facing the bug with your local copy of GrapesJS or with the current demo?
Both.
Are you able to reproduce the bug from the demo?
YES
What is the expected behavior?
Based on our exchange, script should not be appended until block is dropped in canvas.
What happens instead?
When dragging the block over the canvas, the script gets appended without even releasing the block. If you keep dragging over and out, the script gets appended multiple times.
If you're able to reproduce the bug indicate all the necessary steps
- Go to https://grapesjs.com/demo.html.
- Clear the canvas or not.
- Inspect the canvas and open the console.
- Go to editor blocks, and drag TABS block over the canvas and out and back again without actually releasing the block in the canvas.
- Look at the console elements in the div containing gjs-js-cont class. There will be a script for every time you have dragged the same block over and out of the canvas.
Attach screenshots (using KAP/LICEcap), screencasts or live demo
https://www.useloom.com/share/2518c5b8f425423ea9beab803b980d72
Answers (1)
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1411
Manual triggering of the asset manager rendering is required after opening the AM pop-up
Questions Q: Are you using the latest release (older versions are NOT supported)? A: Yes Q. Are you facing the bug with your local copy of...
Issue #2469
[BUG] Adding buttons to RTE toolbar in React App causes buttons to be duplicated.
Are you using the latest release (older versions are NOT supported)? YES, 0.15.9Are you facing the bug with your local copy of GrapesJS or...
Issue #1758
Unable to load in CSS string with characters such as '#' with setStyle()
You're submitting a BUGAre you using the latest release (older versions are NOT supported)?If you're not sure, type grapesjs.version in con...
Issue #1693
[BUG|/QUESTION] Strange characters (Â) within CSS/HTML preview; Elements are not deleted completely
BUGAre you using the latest release (older versions are NOT supported)?0.14.50Are you facing the bug with your local copy of GrapesJS or wi...
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.