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

Commit

Permalink
Merge pull request #4307 from matrix-org/t3chguy/fixes1111
Browse files Browse the repository at this point in the history
Field: mark id as optional in propTypes
  • Loading branch information
t3chguy authored Mar 30, 2020
2 parents b5688ac + 147e7bc commit 6517ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/elements/Field.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function getId() {
export default class Field extends React.PureComponent {
static propTypes = {
// The field's ID, which binds the input and label together. Immutable.
id: PropTypes.string.isRequired,
id: PropTypes.string,
// The element to create. Defaults to "input".
// To define options for a select, use <Field><option ... /></Field>
element: PropTypes.oneOf(["input", "select", "textarea"]),
Expand Down

0 comments on commit 6517ed0

Please sign in to comment.