sandpack icon indicating copy to clipboard operation
sandpack copied to clipboard

HTML script not read

Open X-Ry opened this issue 3 years ago • 0 comments

Bug report

Packages affected

  • [x] sandpack-client
  • [ ] sandpack-react

Description of the problem

I'm trying to use Sandpack Client to display html code, but it seems like the javascript in the script tags gets ignored. For example in this code sandbox I try to create a changeable header using Sandpack Client. It seems like the script tags in the HTML get ignored when displayed in the iframe, but when accessing the code from the "Open in CodeSandbox" button in its own Sandbox it works fine.

Link to sandbox: link

Your Environment

Software Name/Version
Sandpack-client version 1.5.4
Sandpack-react version
Browser
Operating System MacOS

X-Ry avatar Aug 30 '22 20:08 X-Ry