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

Mutation Observer childList is not detected #18043

Open
deerawan opened this issue Apr 25, 2022 · 3 comments
Open

Mutation Observer childList is not detected #18043

deerawan opened this issue Apr 25, 2022 · 3 comments

Comments

@deerawan
Copy link

Describe the bug
Mutation Observer childList is not detected on Storybook.

This is for index.html that specifies the component. See that mutations log exists

Image 2022-04-25 at 13 33 55

Below is Storybook, no mutations log displayed

Image 2022-04-25 at 13 34 07@2x

To Reproduce
It's reproducible in this repo https://github.com/deerawan/mutation-observer-storybook

Important files:

  • action-group.ts (link)
  • index.html (link)
  • action-group.stories.ts (link)

System

System:
    OS: macOS 12.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  Binaries:
    Node: 14.17.0 - ~/.asdf/installs/nodejs/14.17.0/bin/node
    Yarn: 1.22.18 - ~/.asdf/installs/nodejs/14.17.0/.npm/bin/yarn
    npm: 6.14.13 - ~/.asdf/installs/nodejs/14.17.0/bin/npm
  Browsers:
    Chrome: 100.0.4896.127
    Firefox: 99.0.1
    Safari: 15.2
  npmPackages:
    @storybook/addon-actions: ^6.4.22 => 6.4.22 
    @storybook/addon-essentials: ^6.4.22 => 6.4.22 
    @storybook/addon-links: ^6.4.22 => 6.4.22 
    @storybook/web-components: ^6.4.22 => 6.4.22 
@snortblt
Copy link

snortblt commented Mar 4, 2023

Seeing this too

@shilman
Copy link
Member

shilman commented Mar 15, 2023

Is this still an issue on 7.0?

Migration guide: https://storybook.js.org/migration-guides/7.0

@ahuangServicenow
Copy link

I believe this is still the case for 7.0. I guess the mutationObserver basically cannot observe the element in iframe? is there a way we can disable the iframe in preview?

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

No branches or pull requests

4 participants