themeteorchef / base

A starting point for Meteor apps.
http://themeteorchef.com/base
MIT License
689 stars 253 forks source link

Cannot add a new Document (warning: Use of getPreventDefault() is deprecated. Use defaultPrevented instead). #242

Closed alberpeb closed 7 years ago

alberpeb commented 7 years ago

At the moment of clicking in "new Document" and clicking into "title" or "body" I get the following warning message: Use of getPreventDefault() is deprecated. Use defaultPrevented instead.

I don't know why this appear, the only related code (not the specific function) I can found is at components/DocumentEditor.js:

onSubmit={ event => event.preventDefault() }

So, when I try to add a Document (by clicking the "add Document" button), nothing happens.

Thanks for your help! Alberto

alberpeb commented 7 years ago

It seems to be related to a deprecated method of jQuery to validate.

alberpeb commented 7 years ago

Oh Im sorry, I found the error in modules/document-editor.js with the props.