vue-component / request

Ask for making any Vue components you want
3 stars 0 forks source link

React-like onChange method for Vue #3

Closed egoist closed 8 years ago

egoist commented 8 years ago

Normally, in vanilla JavaScript, the onchange event is triggered after you have typed something into a field and then "exited out of it", the same as using Vue's v-on:change.

But React's onChange preforms differently, it triggers each time you type words or leave that field or blur or focus there, I think there is a need of v-change directive to achieve the same thing in Vue.

egoist commented 8 years ago

might be canceled...

forgot about the HTML5's oninput