+
Skip to content

Multiple input in controlled forms #713

Open
@olypros

Description

@olypros

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载