Replies: 1 comment
-
|
Likely related to #1103 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
HTML:
<select name="foobar" hx-post="/myurl" hx-trigger="change,load" hx-vals='js:{evtype: event.type}' >Server response to post at /myurl
returns 200 and html fragment on change event
return 204 and empty on load event
Purpose: generate call to server URL on init as well as on changes (required by backend internals)
Result:
Page loads correctly and post to server url is issued as expected.
Once I change the select input I get the following error (probably in htmx:confirm stage)
TypeError: undefined is not an object (evaluating 'event.type') Error: {}and no post takes place to the server.
Am I doing something wrong or is this potentially a bug.
Beta Was this translation helpful? Give feedback.
All reactions