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; 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;