Fix null type error in Input registry component

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2026-02-28 01:00:31 +00:00
parent 968faac7f5
commit e4d11b68c5

View File

@@ -61,7 +61,7 @@ export const { registry, handlers } = defineRegistry(catalog, {
),
Input: ({ props, bindings }) => {
const [value, setValue] = useBoundProp<string>(props.value, bindings?.value);
const [value, setValue] = useBoundProp<string>(props.value ?? undefined, bindings?.value);
return (
<input
placeholder={props.placeholder ?? ""}