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.

Set input and textarea to display block (#1938)

Oleg Isonen50098fb5e9eb
diff --git a/packages/sdk-components-react/src/input.ws.tsx b/packages/sdk-components-react/src/input.ws.tsx
index 6c76802004..236fd53a3b 100644
--- a/packages/sdk-components-react/src/input.ws.tsx
+++ b/packages/sdk-components-react/src/input.ws.tsx
@@ -10,7 +10,13 @@ import type { defaultTag } from "./input";
import { props } from "./__generated__/input.props";
const presetStyle = {
- input,
+ input: [
+ ...input,
+ {
+ property: "display",
+ value: { type: "keyword", value: "block" },
+ },
+ ],
} satisfies PresetStyle<typeof defaultTag>;
export const meta: WsComponentMeta = {
diff --git a/packages/sdk-components-react/src/textarea.ws.tsx b/packages/sdk-components-react/src/textarea.ws.tsx
index cd340a3a3d..7b7aeb8921 100644
--- a/packages/sdk-components-react/src/textarea.ws.tsx
+++ b/packages/sdk-components-react/src/textarea.ws.tsx
@@ -14,6 +14,10 @@ const presetStyle = {
...textarea,
// resize doesn't work well while on canvas
{ property: "resize", value: { type: "keyword", value: "none" } },
+ {
+ property: "display",
+ value: { type: "keyword", value: "block" },
+ },
],
} satisfies PresetStyle<typeof defaultTag>;