-
|
I'm trying to interrupt a form submission using the The idea is that I'm tracking a flag ( The problem I'm having is that the I'm not sure if I'm doing something wrong, or |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
In case anyone comes across this, I figured this out myself. Unrelated to any of this code, the form was submitting via a call to |
Beta Was this translation helpful? Give feedback.
In case anyone comes across this, I figured this out myself. Unrelated to any of this code, the form was submitting via a call to
formDOM.submit()instead offormDOM.dispatchEvent(new Event('submit')). So the browser default form action was submitting, regardless of whatenhancewanted to do.