RSS Feed/News Can't prevent default submit behavior via JS

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
25,955
Points
823

Reputation:

Trying to work on porting over an add-on to XF 2.3.2 and noticed that form submissions are happening, even if specifying e.preventDefault() and e.preventSubmit = true. I first trigger XF.Alert and see the popup, but immediately after, I see the regular form submission happen.

It looks like I might be running into a similar variation of this issue: https://xenforo.com/community/threads/js-cant-prevent-form-from-being-submitted.220375/

Here's a copy of my updated code for 2.3 to...

Read more

Continue reading...
 
Status
Not open for further replies.
Top