Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bridge doesn't work properly for components in Shadow DOM #284

Open
menschner opened this issue Apr 26, 2023 · 0 comments
Open

Bridge doesn't work properly for components in Shadow DOM #284

menschner opened this issue Apr 26, 2023 · 0 comments

Comments

@menschner
Copy link

Building web components with Storyblok isn't fully workable, because the Bridge can't access the shadow DOM.


Expected Behavior

If I call the Storyblok-API with the bridge from inside a Web Component, it should be possible to use the full Bridge-functionality.

Current Behavior

U can take the events and response to that, but u can't click on components inside / access the "Component Menus".

Steps to Reproduce

if u like i can create an example project with the problem shwon, but it's simple:

  1. create web component with storyblok-sdk inside
  2. load web component in shadow dom
  3. try to edit something in the visual editor

In my opinion is the problem, that the script ist loaded into the head, interacts with the body-tag only and it queries through the document, but these are all things, that havent's access to components in shadow DOM (and no, I can't just drop the shadow DOM ^^).
Or do I make any mistakes?! 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant