Skip to content

Instantly share code, notes, and snippets.

@willrax
Last active November 19, 2015 12:03
Show Gist options
  • Select an option

  • Save willrax/2efbf1d0e805b29f3753 to your computer and use it in GitHub Desktop.

Select an option

Save willrax/2efbf1d0e805b29f3753 to your computer and use it in GitHub Desktop.
{{! this example will move the cursor to the end each time
you type, even if you are in the middle of the input value}}
<input value={{inputText}} oninput={{action (mut inputText) value="target.value"}}>
{{! this example wont}}
<input value={{inputText}} onchange={{action (mut inputText) value="target.value"}}>
{{! notice the different events}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment