Issue #3674๐Ÿ’ฌ AnsweredOpened Aug 5, 2021by sriya-srinivasan1 reactions

Invisible webcomponents

Quick answerby artfโค 1

Posted a workaround here https://github.com/artf/grapesjs/issues/3693

Read full answer below โ†“

Question

Version: 0.17.19 What is the current behavior? That the added webcomponent is visible: When adding web components inside grapesjs container, the component is empty/blank, if the component has elements in the shadow DOM. (If not using shadow dom to create components there is no issue.) It is visible in layer manager, but empty Here we can see the diffrence between the element inside and outside. The shadow root is not visible. What is the expected behavior? The webcomponent inside grapesjs canvas needs to be rendered and look similar to the one outside, on top of the editor. Are you able to at...

Answers (4)

artfโ€ข Aug 5, 2021

Hey @sriya-srinivasan can you create a reproducible demo, please?

artfโ€ข Aug 10, 2021

@sriya-srinivasan any update please?

GJSBlockโ€ข May 17, 2026

Thanks for reporting this, @sriya-srinivasan. The issue with Invisible webcomponents appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modifications overlap, creating an inconsistent state. What to try: Add a setTimeout...

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins โ†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features โ€” save days of integration work.

Browse premium plugins โ†’

Related tutorials

In-depth guides on the same topic.

All tutorials โ†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.