goatslacker / alt

Isomorphic flux implementation
http://alt.js.org/
3.45k stars 323 forks source link

Multiple input in controlled forms #713

Open olypros opened 7 years ago

olypros commented 7 years ago

https://facebook.github.io/react/docs/forms.html#handling-multiple-inputs

Im trying to implement this using alt but its not working. I cannot pass js object to store from action.

It only works individually,specifically defining single functions for each input element.

E.g I have to create

handleName(e){...} handleMomName(e){...}

in Actions and pass value to stores and set its state there.

handleNameSuccess(val){this.stateName = val;} handleMomSuccess(val){this.stateMomName = val;.}

and so on..

But how do i do multiple input at once using alt?