meteor / react-tutorial

React Tutorial is the best place to learn how to use React and Meteor together
https://react-tutorial.meteor.com/
39 stars 87 forks source link

Prevent default issue on firefox #42

Closed Naokotani closed 2 years ago

Naokotani commented 2 years ago

There seems to be an issue with using e.preventDefault(); on firefox and the app did not work until I changed it to event.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

vitorflores commented 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".

StorytellerCZ commented 2 years ago

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.

Naokotani commented 2 years ago

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.