samedi 27 décembre 2014

METEOR on change event only get's fired on a text area after you click out of the text area


Here is my template:



<template name="textGoesHere">
{{#if currentUser}}
<div id="boxdiv">
<textarea id="box">{{user.text}}</textarea>
</div>

{{/if}}
</template>


Here is my Meteor event:



'change #box': function (e) {
Meteor.call('click', $("#box").val());

}


For some reason, this event only gets fired after you click out of the text area after you've changed it's contents. But apparently, the event is suppose to be called when the text area is changed which is the functionality I'm looking for.





Aucun commentaire:

Enregistrer un commentaire