Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Bring back initial props to remix image (#1671)

Bogdan Chadkina14052bf99ad
diff --git a/packages/react-sdk/src/app/custom-components/index.ts b/packages/react-sdk/src/app/custom-components/index.ts
index 59ce524d99..d2a9abd35e 100644
--- a/packages/react-sdk/src/app/custom-components/index.ts
+++ b/packages/react-sdk/src/app/custom-components/index.ts
@@ -16,7 +16,10 @@ export const customComponents = {
};
export const customComponentPropsMetas: Record<string, WsComponentPropsMeta> = {
- Image: { props: imageProps },
+ Image: {
+ props: imageProps,
+ initialProps: ["src", "width", "height", "alt", "loading"],
+ },
Form: formPropsMeta,
};