diff --git a/packages/material-ui/src/TextField/TextField.d.ts b/packages/material-ui/src/TextField/TextField.d.ts index 376f83448233b4..6c03da1babc8c5 100644 --- a/packages/material-ui/src/TextField/TextField.d.ts +++ b/packages/material-ui/src/TextField/TextField.d.ts @@ -35,7 +35,7 @@ export interface TextFieldProps select?: boolean; SelectProps?: Partial; type?: string; - value?: Array | string | number; + value?: Array | string | number | boolean; } export type TextFieldClassKey = FormControlClassKey; diff --git a/packages/material-ui/src/TextField/TextField.js b/packages/material-ui/src/TextField/TextField.js index 9df2722fd73083..fca8f116d45f44 100644 --- a/packages/material-ui/src/TextField/TextField.js +++ b/packages/material-ui/src/TextField/TextField.js @@ -260,7 +260,8 @@ TextField.propTypes = { value: PropTypes.oneOfType([ PropTypes.string, PropTypes.number, - PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), + PropTypes.bool, + PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool])), ]), }; diff --git a/pages/api/text-field.md b/pages/api/text-field.md index 18e661a47205ef..f1c4aadd2ebd40 100644 --- a/pages/api/text-field.md +++ b/pages/api/text-field.md @@ -65,7 +65,7 @@ For advanced cases, please look at the source of TextField by clicking on the | select | bool | false | Render a `Select` element while passing the `Input` element to `Select` as `input` parameter. If this option is set you must pass the options of the select as children. | | SelectProps | object |   | Properties applied to the [`Select`](/api/select) element. | | type | string |   | Type attribute of the `Input` element. It should be a valid HTML5 input type. | -| value | union: string |
 number |
 arrayOf
|   | The value of the `Input` element, required for a controlled component. | +| value | union: string |
 number |
 bool |
 arrayOf
|   | The value of the `Input` element, required for a controlled component. | Any other properties supplied will be spread to the root element ([FormControl](/api/form-control)). diff --git a/pages/lab/api/speed-dial.md b/pages/lab/api/speed-dial.md index 676ff87d4f0b51..fba7b88542d6e1 100644 --- a/pages/lab/api/speed-dial.md +++ b/pages/lab/api/speed-dial.md @@ -19,7 +19,7 @@ title: SpeedDial API | ButtonProps | object |   | Properties applied to the [`Button`](/api/button) element. | | children * | node |   | SpeedDialActions to display when the SpeedDial is `open`. | | classes | object |   | Override or extend the styles applied to the component. See [CSS API](#css-api) below for more details. | -| direction | enum: 'up' |
 'down' |
 'left' |
 'right'
| 'top' | The direction the actions open relative to the floating action button. | +| direction | enum: 'up' |
 'down' |
 'left' |
 'right'
| 'up' | The direction the actions open relative to the floating action button. | | hidden | bool | false | If `true`, the SpeedDial will be hidden. | | icon * | element |   | The icon to display in the SpeedDial Floating Action Button. The `SpeedDialIcon` component provides a default Icon with animation. | | onClose | func |   | Callback fired when the component requests to be closed.

**Signature:**
`function(event: object, key: string) => void`
*event:* The event source of the callback
*key:* The key pressed |