form action Breaking On Second Submit
To learn about actions, I built a simple notes app. The app displays a list of notes. When you click an edit button, the note text turns into a text input that can be edited. You can see what I'm describing in this code.
When you click save, the form calls the updateNote action.
The first time I perform an edit, the action works as expected. The edit is made and I stay on the same page.
But if I try to make a second edit, the browser navigates to an action URL like this
I've noticed the same error occurs if you forget to include
Does anyone know why this form is failing on the second submit?
Thanks,
Chris
When you click save, the form calls the updateNote action.
The first time I perform an edit, the action works as expected. The edit is made and I stay on the same page.
But if I try to make a second edit, the browser navigates to an action URL like this
https://action/640465549 and the page shows a "This site can't be reached" message.I've noticed the same error occurs if you forget to include
method="post" in your form. But in this case, I definitely have method="post" in my form. Does anyone know why this form is failing on the second submit?
Thanks,
Chris
