Template.body.events({
'keyup': function(event) {
event.preventDefault();
console.log("KEYUP");
},
});
Why does this not fire when I press any key?
Template.body.events({
'keyup': function(event) {
event.preventDefault();
console.log("KEYUP");
},
});
Why does this not fire when I press any key?
When body events aren’t working, I meteor add gwendall:body-events
and things get better.
Unless something has changed, you cannot use events on the “body” template, to use events on a more “global” template, wrap them in another template and attach events to that template.
Everything certainly got better! Haha, thanks!