When using action on input form like this:
{{input value=firstName action="didType" on="key-press" class="uk-form"}}
and controller like this:
App.IndexController = Ember.ArrayController.extend({
actions: {
didType: function(something) {
console.log("Typed: "+something);
}
}
});
key presses work, but the first character is undefined. So if I type: "hello" the following outputs: 'Typed: hell'
Anyone know what's wrong?
Here's the JSBin.
Aucun commentaire:
Enregistrer un commentaire