-
Notifications
You must be signed in to change notification settings - Fork 472
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 Previous Error Not Getting Cleared #1276
Comments
FWIW for anyone who comes across this.. Ive noticed |
Looks like updating store from within a store doesn't update properties internally. Here is a quick way to reproduce the issue:
Output:
Internally Edit: issue is that new object is created every time store is updated. See here |
Thanks @ainesophaur @edgars-vasiljevs what is your approach? Using I wonder whether should I go with Vue or Svelte for a new project. |
@talovicnedim I would recommend going with Vue, much better support is available. |
That's so fast! @ramonmalcolm10 I'm thinking that too. Svelte looks cool, but seems it's too early for that. |
Hey! Thanks so much for your interest in Inertia.js and for sharing this issue/suggestion. In an attempt to get on top of the issues and pull requests on this project I am going through all the older issues and PRs and closing them, as there's a decent chance that they have since been resolved or are simply not relevant any longer. My hope is that with a "clean slate" me and the other project maintainers will be able to better keep on top of issues and PRs moving forward. Of course there's a chance that this issue is still relevant, and if that's the case feel free to simply submit a new issue. The only thing I ask is that you please include a super minimal reproduction of the issue as a Git repo. This makes it much easier for us to reproduce things on our end and ultimately fix it. Really not trying to be dismissive here, I just need to find a way to get this project back into a state that I am able to maintain it. Hope that makes sense! ❤️ |
Already fixed by #1610 ✅ |
Versions:
@inertiajs/inertia
version: 0.11.0@inertiajs/inertia-svelte
version: 0.8.0Describe the problem:
When submit a form with multiple input fields and those fields failed validation, if correct anyone of those field and resubmit, the previous error message will still displayed for the now valid field.
Steps to reproduce:
useForm({ first_name: '', last_name: '' })
{#if $form.errors.first_name} <p>{$form.errors.first_name}</p> {/if} {#if $form.errors.last_name} <p>{$form.errors.last_name}</p> {/if}
<form on:submit|preventDefault={$form.post('/test'))}>
The text was updated successfully, but these errors were encountered: