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
Is the input inside the form? In the snippet the <form /> tag is self closing or is that a copy & paste error here and the form encapsulates the input element in your app?
asyncPOST(req,ctx){constform=awaitreq.formData();constformValues=Object.fromEntries(form.entries());console.log({ formValues });// prints empty object for formValues, if I remove partial navigation // and use a standard `action` route, it does display the value though
Good news: Just took a look at this and it is already fixed in main. I'm not sure which exact commit resolved it, but I cannot reproduce it there anymore 🎉
consider:
when this input is clicked and the form is submitted, the
req.formData();
should contain the value{ car: "a"}
, but it does not. It is empty instead.The text was updated successfully, but these errors were encountered: