[Bug]: CSS not added when blocks are drag and dropped after core:canvas-clear command invoked
Question
I'm using grapesjs-blocks-basic plugin that has a number of column blocks. When I drag and drop these blocs onto the canvas they are displayed correctly for the first time and I can see the associated CSS added in the code viewer. But, once I invoke 'core:canvas-clear' command and drag-and drop the same blocks they are not displayed in canvas correctly anymore and CSS is missing in the code viewer.
It looks like 'e.CssComposer.clear();' call in the 'core:canvas-clear' command causes this issue.
GrapesJS version: 0.13.5/0.13.8
Answers (3)
I just merged https://github.com/artf/grapesjs-blocks-basic/pull/4 which solves the issue. I'll publish soon a new release of the plugin
Thank you!
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1672
[Bug] Item drop duplicates after opening Layers Panel.
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....
Issue #1895
[QUESTION] Drag component over canvas with script, script appended multiple times.
Hi, not sure if this is a bug or not. But I noticed a weird behavior, when I drag a block that has a component that contains a script funct...
Issue #1369
[BUG] Class of a block doesn't always show in the classes section
Hello everyone, I have added many custom blocks and gave the same css class to all the images in those blocks. Let's call it for now 'image...
Issue #828
[QUESTION] Components 'add' event fires different number of times
Hi, I've noticed that if I add the following code in my custom component the event fires differently depending on whether a new child compo...
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.