Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

v1.12.1

Compare
Choose a tag to compare
@davidkpiano davidkpiano released this 09 Jun 13:15
· 265 commits to master since this release

HTML5 Constraint Validation Enhancements
There's two special attributes related to validation and form submission in the HTML5 Constraint Validation spec:

  • <input formNoValidate>, which will not prevent the <form> from submitting even if it's invalid
  • <form noValidate>, which will always submit, even if a control is invalid.

In this patch, these attributes will now work as expected, according to the spec. See here for a detailed explanation (which will be added to the docs): #823 (comment)

Fixes and Enhancements

  • Doc updates for a11y which address #825. Make sure to always have either:
    • <label htmlFor="some-control-id"> on your labels, or...
    • wrap your control in a <label> for implicit linking.
  • Fixed a bug where the development version of React was passing two arguments to event handlers, which was conflicting with an internal forceUpdate mechanism. #831
  • Now, arrays and objects passed in as validity will be merged, instead of overwritten. See #834 for the use case.
  • Thanks to @kabbi for fixing resolveModel context propagation issues (internal) - #815