mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
Merge pull request #4307 from matrix-org/t3chguy/fixes1111
Field: mark id as optional in propTypes
This commit is contained in:
commit
6517ed07bd
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ function getId() {
|
||||||
export default class Field extends React.PureComponent {
|
export default class Field extends React.PureComponent {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
// The field's ID, which binds the input and label together. Immutable.
|
// 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".
|
// The element to create. Defaults to "input".
|
||||||
// To define options for a select, use <Field><option ... /></Field>
|
// To define options for a select, use <Field><option ... /></Field>
|
||||||
element: PropTypes.oneOf(["input", "select", "textarea"]),
|
element: PropTypes.oneOf(["input", "select", "textarea"]),
|
||||||
|
|
Loading…
Reference in a new issue