You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
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?
The text was updated successfully, but these errors were encountered: