Closed Naokotani closed 2 years ago
Hi, could you provide more details? In the link you provided they talk about using the event argument, something that we already do, and not specifically using event instead of just "e".
First of this is not a repo for the tutorial on Meteor Tips (which is outdated).
Second you are probably missing the event var in the function declaration as such: 'submit form': function(event)
. If you call it e
or event
that variable is what you then use to call the preventDefault()
function.
That should take care of your problem. Hence I'm closing this issue.
I don't seem to be able to reproduce the issue now. There must have been something else causing the bug. Sorry to waste you time.
There seems to be an issue with using
e.preventDefault();
on firefox and the app did not work until I changed it toevent.preventDefault();
as per the suggestion on this Stack Overflow question.https://stackoverflow.com/questions/40680019/event-preventdefault-in-meteor-app-does-not-work-for-firefox