From 64583601dc39d943344dd2f7f305f011e186b71c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Mon, 20 Oct 2025 05:55:58 +0200 Subject: [PATCH] Fix --- packages/example/src/lib/form/TextFieldFormInput.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/example/src/lib/form/TextFieldFormInput.tsx b/packages/example/src/lib/form/TextFieldFormInput.tsx index 85db7fa..e0973fb 100644 --- a/packages/example/src/lib/form/TextFieldFormInput.tsx +++ b/packages/example/src/lib/form/TextFieldFormInput.tsx @@ -1,5 +1,5 @@ import { Callout, Flex, Spinner, Switch, TextField } from "@radix-ui/themes" -import { Array, Option } from "effect" +import { Array, Option, Struct } from "effect" import { Component, Form, Hooks } from "effect-fc" @@ -41,7 +41,7 @@ export class TextFieldFormInput extends Component.makeUntraced("TextFieldFormInp value={input.value} onChange={e => input.setValue(e.target.value)} disabled={(input.optional && !input.enabled) || isSubmitting} - {...props} + {...Struct.omit(props, "optional", "defaultValue")} > {input.optional &&