-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[version 2.0.0-beta1] formData instead of parameters in htmx event #2616
Comments
Hey, we implemented the internal FormData change with a proxy object, so you should be able to use it just as you were before, as direct assignments (like an object's entries) will be handled by the proxy. PS: Along the |
The main issue is that now complex objects are parsed as [Object object] breaking the app when switching to the beta, is there a way to restore the old behavior? |
Sounds like an issue we'd want to fix indeed! |
Not sure I am looking at the right place, Line 2218 in ec63577
It seems to me that that is impossible to include a JS object as a value, only strings. |
How did a request payload look like in the network tab with the 1.x version in this situation? Was the object rendered as a JSON string or was it handled otherwise? |
Parameters were constructed through Going to provide reproducible code in the following days The paylod was a well formatted json (using json-enc) |
Hello, in the new beta there seems to be a breaking change in the way the event is handling parameters.
In the current latest the htmx event has the property
parameters
that is aJS object
.Now the htmx event seems to work with
formData
.This behavior is not described here https://v2-0v2-0.htmx.org/migration-guide-htmx-1/
My question is, is that intended or not? If it is, there will be a way to preserve the current behavior?
The text was updated successfully, but these errors were encountered: