Skip to content

Commit 91a95d3

Browse files
AkselsLedinsoliviertassinari
authored andcommitted
[docs] Fix select multiple prop description
1 parent 9445b61 commit 91a95d3

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

packages/material-ui/src/Select/Select.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ Select.propTypes = {
121121
MenuProps: PropTypes.object,
122122
/**
123123
* If true, `value` must be an array and the menu will support multiple selections.
124-
* You can only use it when the `native` property is `false` (default).
125124
*/
126125
multiple: PropTypes.bool,
127126
/**

pages/api/select.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import Select from '@material-ui/core/Select';
2626
| <span class="prop-name">input</span> | <span class="prop-type">element</span> | <span class="prop-default">&lt;Input /></span> | An `Input` element; does not have to be a material-ui specific `Input`. |
2727
| <span class="prop-name">inputProps</span> | <span class="prop-type">object</span> |   | Attributes applied to the `input` element. When `native` is `true`, the attributes are applied on the `select` element. |
2828
| <span class="prop-name">MenuProps</span> | <span class="prop-type">object</span> |   | Properties applied to the [`Menu`](/api/menu/) element. |
29-
| <span class="prop-name">multiple</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | If true, `value` must be an array and the menu will support multiple selections. You can only use it when the `native` property is `false` (default). |
29+
| <span class="prop-name">multiple</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | If true, `value` must be an array and the menu will support multiple selections. |
3030
| <span class="prop-name">native</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | If `true`, the component will be using a native `select` element. |
3131
| <span class="prop-name">onChange</span> | <span class="prop-type">func</span> |   | Callback function fired when a menu item is selected.<br><br>**Signature:**<br>`function(event: object, child?: object) => void`<br>*event:* The event source of the callback. You can pull out the new value by accessing `event.target.value`.<br>*child:* The react element that was selected when `native` is `false` (default). |
3232
| <span class="prop-name">onClose</span> | <span class="prop-type">func</span> |   | Callback fired when the component requests to be closed. Use in controlled mode (see open).<br><br>**Signature:**<br>`function(event: object) => void`<br>*event:* The event source of the callback |

0 commit comments

Comments
 (0)