Uncaught TypeError: evt.preventDefault is not a function, ws.js line 232
Lines 230 - 233 of ws.js:
if(api.shouldCancel(evt, child)){
evt.preventDefault();
}
This is in the "processWebSocketSend" function in ws.js, called from htmx.js:1354.
Lines 1353 - 1355 of htmx.js:
} else {
handler(elt, evt);
}
This is inside the "addEventListener" function that receives an event.
The debugger shows that at line 1354, the variable named "evt" is a PointerEvent.
However, in the anonymous function defined in the call to api.addTriggerHandler, evt looks like a reference to a node and is not an event.
It appears to me that maybe the call to api.addTriggerHandler in ws.js at line 215 should look like this?:
api.addTriggerHandler(child, ts, nodeData, function (elt, evt) {