Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #348 from Akronix/readonly-input
Browse files Browse the repository at this point in the history
Changed incorrect readonly prop of Input by right one: readOnly
  • Loading branch information
T4rk1n authored Oct 29, 2018
2 parents f9ed14d + fd385dd commit aa3557e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Input.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ Input.propTypes = {
/**
* This attribute indicates that the user cannot modify the value of the control. The value of the attribute is irrelevant. If you need read-write access to the input value, do not add the "readonly" attribute. It is ignored if the value of the type attribute is hidden, range, color, checkbox, radio, file, or a button type (such as button or submit).
*/
readonly: PropTypes.string,
readOnly: PropTypes.string,

/**
* This attribute specifies that the user must fill in a value before submitting a form. It cannot be used when the type attribute is hidden, image, or a button type (submit, reset, or button). The :optional and :required CSS pseudo-classes will be applied to the field as appropriate.
Expand Down

0 comments on commit aa3557e

Please sign in to comment.