Skip to content

Problem with inline JavaScript #4776

@happyCoda

Description

@happyCoda

🐛 bug report

When I try to use an inline script in html and do something with DOM in that script it works ok, but then DOM re-renders and all my changes disappear of course. If I move my js to separate file and use it via src everything works as it should.

I was trying to use web components on my page and all shadow dom disappears

Your Environment

Software Name/Version
Сodesandbox 5459ae0
Browser 84
Operating System macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions