-
-
Notifications
You must be signed in to change notification settings - Fork 530
Open
Description
Describe the bug
useForm({
defaultValues: {
status: params.get('status') // assume this is active for example
}
})
<form.Field name="status" asyncAlways>
{(field) => (
....
field.setValue(undefined) // doesn't work. it resets status to active.
form.setFieldValue("status", undefined) // doesn't work. it resets status to active.
field.setValue(undefined) // doesn't work. it resets status to active.
)}
</form.Field>
they all default to the default value
Your minimal, reproducible example
TODO
Steps to reproduce
N/A
Expected behavior
I would expect that setValue / handleChange would accept undefiend
and it wouldn't be overridden by the default value.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
- OS: Macos
- version: ^1.0.5
TanStack Form adapter
None
TanStack Form version
^1.0.5
TypeScript version
No response
Additional context
No response
Dogfalo, jashworth, germanski, JaryJay, ryrudnev and 13 more
Metadata
Metadata
Assignees
Labels
No labels