Skip to content
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

Chapter 14: after form validation, every fields return to it's initial state #836

Open
hyunha95 opened this issue Aug 19, 2024 · 1 comment

Comments

@hyunha95
Copy link

I am working on 'Edit Invoice' page.
https://nextjs.org/learn/dashboard-app/improving-accessibility

Initial state for customer is 'Amy Burns', for amount is '12.5' and for status is 'Paid'.

I change customer to 'Evil Rabbit' and amount to empty.

After submitting my form, amount is validated but suddenly customer value returns to it's initial value which is 'Amy Burns'.
And amount value also returns to initial value which is '12.5'.

This is , to me, very strange.

I am wondering that it is a bug or intended.

If it is intended, is there other way that i can avoid this?

@hyunha95 hyunha95 changed the title after form validation, every fields return to it's initial state Chapter 14: after form validation, every fields return to it's initial state Aug 19, 2024
@eiffel205566
Copy link

hey @hyunha95

please take a look and try this:
#845 (comment)

let me know if it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants