clutch-creator / clutch

The Next Website Builder for High-Performance Marketing
https://clutch.io
MIT License
50 stars 4 forks source link

When using dangerouslySetInnerHTML images do not render in Clutch #31

Open daprieu opened 1 year ago

daprieu commented 1 year ago

How to reproduce

  1. Using a cms like wordpress make a post that has an image(s)
  2. Then in Clutch Fetch that post using the wp graph ql query
  3. using a block component, render the HTML returned from wp graphql query using dangerouslySetInnerHTML
  4. Image is broke in the page/canvas
  5. pop window out to view in browser
  6. image renders just fine in browser

Describe the bug

Images from graphql being set using dangerouslySetInnerHTML do not render in Clutch but do render in browser

Expected behavior

Images should render in Clutch so that a user does not think the image is broken and can continue to work normally

Operating System

macOS 13.5

Clutch Version

Desktop: 1.204.0-alpha.90b6c69e47 | Interface: v1.204.0

Other

https://github.com/clutch-creator/clutch/assets/57027607/517edec2-be2c-4de3-9963-cd90a9205dc7