React-select: Support for form onChange

Created on 19 Nov 2015  路  4Comments  路  Source: JedWatson/react-select

Would be great if react-select triggered an synthetic event on the form with a target name and value.

Is this feature planned at all?

Most helpful comment

I'd like to handle the synthetic event at the form rather than on the input itself:

<form onChange={this.handleFormChange.bind(this)}>
  <Select name="form-field-name"
          value="one"
          options={options} />
</form>

All 4 comments

@drpheltright It might help here to show some code that explains what you're trying to accomplish.

I'd like to handle the synthetic event at the form rather than on the input itself:

<form onChange={this.handleFormChange.bind(this)}>
  <Select name="form-field-name"
          value="one"
          options={options} />
</form>

any plans on this? or an existing simple workaround?

Version 1 of react-select is no longer supported.

In the best interest of the community we've decided to spend the time we have available on the latest version.

We apologise for any inconvenience.

Please see:

  1. v1 to v2 upgrade guide
  2. v1 documentation and examples
Was this page helpful?
0 / 5 - 0 ratings