Skip to content

Commit

Permalink
fix(form): fix issue with zero being rendered as empty string in numb…
Browse files Browse the repository at this point in the history
…er input

Fixes #3940
  • Loading branch information
bjoerge committed Dec 12, 2022
1 parent 7265a6b commit 7be7511
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -82,7 +82,7 @@ export function PrimitiveField(props: {
id: member.field.id,
ref: focusRef,
onChange: handleNativeChange,
value: String(member.field.value || ''),
value: String(member.field.value ?? ''),
readOnly: Boolean(member.field.readOnly),
placeholder: member.field.schemaType.placeholder,
}),
Expand Down

1 comment on commit 7be7511

@vercel
Copy link

@vercel vercel bot commented on 7be7511 Dec 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-studio – ./

test-studio.sanity.build
test-studio-git-next.sanity.build

Please sign in to comment.