alphagov / govuk_elements

❗️GOV.UK Elements is deprecated, and will only receive major bug fixes and security patches.
https://govuk-elements.herokuapp.com/
MIT License
227 stars 90 forks source link

React 16 warnings #613

Closed DavidBeale closed 6 years ago

DavidBeale commented 6 years ago

How would you expect it to work?

No dev tools warnings

How does it work currently?

Warning: Invalid DOM property `readonly`. Did you mean `readOnly`?
    in input (created by t)
    in span (created by t)
    in div (created by t)
    in t (created by Typeahead)
    in span (created by Typeahead)
    in Typeahead (created by ManagedInput)
    in ManagedInput
printWarning 

checkPropTypes.js:19 Warning: Failed prop type: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.
    in input (created by t)
    in span (created by t)
    in div (created by t)
    in t (created by Typeahead)
    in span (created by Typeahead)
    in Typeahead (created by ManagedInput)
    in ManagedInput
printWarning 

warning.js:33 Warning: React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.

Tell us about your environment

DavidBeale commented 6 years ago

Wrong Project