mirror of
https://github.com/kennethnym/jrx.git
synced 2026-03-20 03:41:18 +00:00
Fix null type error in Input registry component
Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
@@ -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 ?? ""}
|
||||
|
||||
Reference in New Issue
Block a user