e.preventdefault(); not working

I had a similar problem, in which e.preventDefault() would work on some cases, but not on others. It showed no errors, and using try-catch was not displaying the catch alert.
Adding e.stopImmediatePropagation() did the trick, in case it helps anyone (big thanks to wcpro)

Leave a Comment