Skip to content

Subsequent form value updates

Latest
Compare
Choose a tag to compare
@moubi moubi released this 06 Oct 08:59

It's now possible to have several onChange() calls that update form values without skipping or erasing.

<input
  type="text"
  value={values.field1}
  name="field1"
  onChange={e => {
    onChange("field1", e.target.value);
    onChange("field2", e.target.value);
  }}
/>

The above snippet will change both field values successfully.