Skip to content

Commit

Permalink
Update Select component API docs to mention passing empty string as v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
asownder95 committed Oct 3, 2019
1 parent bfae047 commit aaa98c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/pages/api/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi
| <span class="prop-name">open</span> | <span class="prop-type">bool</span> | | Control `select` open state. You can only use it when the `native` prop is `false` (default). |
| <span class="prop-name">renderValue</span> | <span class="prop-type">func</span> | | Render the selected value. You can only use it when the `native` prop is `false` (default).<br><br>**Signature:**<br>`function(value: any) => ReactElement`<br>*value:* The `value` provided to the component. |
| <span class="prop-name">SelectDisplayProps</span> | <span class="prop-type">object</span> | | Props applied to the clickable div element. |
| <span class="prop-name">value</span> | <span class="prop-type">any</span> | | The input value. This prop is required when the `native` prop is `false` (default). |
| <span class="prop-name">value</span> | <span class="prop-type">any</span> | | The input value. Providing an empty string will select no options. This prop is required when the `native` prop is `false` (default). |
| <span class="prop-name">variant</span> | <span class="prop-type">'standard'<br>&#124;&nbsp;'outlined'<br>&#124;&nbsp;'filled'</span> | <span class="prop-default">'standard'</span> | The variant to use. |

The `ref` is forwarded to the root element.
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/Select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Select.propTypes = {
*/
SelectDisplayProps: PropTypes.object,
/**
* The input value.
* The input value. Providing an empty string will select no options.
* This prop is required when the `native` prop is `false` (default).
*/
value: PropTypes.any,
Expand Down

0 comments on commit aaa98c3

Please sign in to comment.