BUG: Components disappearing/not being rendered at cloning, moving or adding
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
Chromium v96
Reproducible demo link
https://grapesjs.com/demo-mjml.html
Describe the bug
How to reproduce the bug?
- Add a one column component
- Select the column
- Click the copy button on the toolbar
- Repeat the steps 2 and 3 with the components two columns, three columns and navbar-link inside the navbar component.
- Move the component or repeat step 3 with one of the components and the first clone will appear
What is the expected behavior? When clicking the copy button, the clone must appear on the side of the original.
What is the current behavior? The clone is not rendered inside the canvas, but appears on the exported code.
When debugging from the render function of those components, it seems that the component is rendered for a few steps and then disappear inside a function from grapes.js. The video below show a example with de navbar and navbar-link components. As you can see, after returning the rendered component to grapes.js it disappears after a few steps.
Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (1)
Sorry but demo-mjml is a plugin and not related directly to the core. As I see no issues with the default renderer of components that might be related to the mjml renderer of components and I have no reason to keep this issue open. Despite that, if anybody is able to identify the issue and it's some how related to the core, I'm open to fix that.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4503
BUG: Missing inline styles used by CKEditor when adding raw html components
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chromium v96 Reproducible demo link https:...
Issue #6152
BUG: CSS added via custom code persists after custom code component is removed
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? any Reproducible demo link https://grapesj...
Issue #5775
BUG: component.get('traits').clone() is no longer available.
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Arc Version 1.35.0 / Chromium Engine 123.0...
Issue #5378
BUG: Uncaught TypeError: Cannot read properties of undefined (reading 'Canvas') while dragging a component in Layer Manager Panel
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v116.0.5845.97 Reproducible demo li...
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.