Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple input in controlled forms #713

Open
olypros opened this issue Apr 20, 2017 · 0 comments
Open

Multiple input in controlled forms #713

olypros opened this issue Apr 20, 2017 · 0 comments

Comments

@olypros
Copy link

olypros commented Apr 20, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant