lundi 25 janvier 2016

Add action to enter in ember textarea input helper

I have used addon ember-autoresize for my textarea to resize my textarea.

{{textarea type="text" placeholder="Comment" value=comment_text autofocus="autofocus" rows=1 max-rows=4 autoresize=true 
      enter="commentSave"}}

I want to trigger the action when user press enter.But it moves to next line when I press enter.How do I call the action when enter key is pressed in textarea.




Aucun commentaire:

Enregistrer un commentaire