-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form Being Reset #1704
Comments
I experienced this issue recently today. const form = useForm({
name: "",
address: "",
});
return (
<input value={form.data.name} onChanged={(e) => form.setData("name", e.target.value)} />
<LocationInput
value={form.data.address}
onChanged={(e) =>
form.setData((data) => ({
...data,
address: e,
}))
}
/>
) |
Any idea @rikoriswandha why it is making a consecutive call on a string field? |
I have no idea, in my case, I'm using |
We are now using an updater function internally with |
Version:
@inertiajs/react
version: 1.0.12Describe the problem:
useForm
keeping resetting when I update a specific field from a component that utilizereact-google-autocomplete
library.Steps to reproduce:
react-google-autocomplete
libraryapiKey
valueThe text was updated successfully, but these errors were encountered: